Skip to content

Instantly share code, notes, and snippets.

@bgando
Created July 17, 2017 19:27
Show Gist options
  • Save bgando/aa0b01559069e8afac448b25532033b5 to your computer and use it in GitHub Desktop.
Save bgando/aa0b01559069e8afac448b25532033b5 to your computer and use it in GitHub Desktop.
steps to publish a blog on hubspot with minimal formatting issues

Hubspot

  1. Write your post in Markdown (probably on Google Docs)
  2. Open the markdown editor at http://dillinger.io/
  3. Write (or paste) {% raw %} {% endraw %} in the blank editor - this is the most annoying unavoidable step, but only needed if you have {{ }} tags in the article
  4. Paste your markdown in between the raw/endraw tags
  5. Export as -> Styled HTML
  6. Open the downloaded file, copy the body
  7. Open your Hubspot post, go to Tools > Source Code
  8. Paste

Now save and preview. Post will look amazing.

@Exadra37
Copy link

Exadra37 commented Feb 1, 2019

Thanks for the tip of converting markdown to html, but in 2019 the styled html doesn't work anymore in Hubspot, once they will strip out the <style> .... </style> content.

@gdcohen
Copy link

gdcohen commented Jan 23, 2020

Just tried it and it worked really well for me! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment