Choose your preferred SSG:
Choose your preferred SSG:

Editing markdown in the Visual Editor

Markdown files can be opened in Visual Editor if these conditions are met:

  • The page has a layout defined and is output on the built site
  • In the layout, there must be an element surrounding the output of the Markdown content, and it can’t have any other children.

For example, Markdown files that use this layout can be opened in the Visual Editor:

Jekyll content

page.html
<div class="content">
  {{ content }}
</div>

Hugo content

Eleventy content

Other content

Markdown files that use this layout can not be opened in the Visual Editor:

Jekyll content

page.html
<div class="content">
  {{ content }}
  <p> Some other content</p>
</div>

Hugo content

Eleventy content

Other content

Was this article helpful? or Suggest an improvement >

Related articles