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:

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

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

page.html
<div class="content">
  {{ content }}
  <p> Some other content</p>
</div>
Was this article helpful? or Suggest an improvement >

Related articles