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:
specific doc
<div class="content">
{{ content }}
</div>
specific doc
<div class="content">
{{ .Content }}
</div>
specific doc
<div class="content">
{{ content | safe }}
</div>
specific doc
There's no official support to automatically create an Editable Region for content in other SSGs as the way they render content varies greatly.
Markdown files that use this layout can not be opened in the Visual Editor:
specific doc
<div class="content">
{{ content }}
<p> Some other content</p>
</div>
specific doc
<div class="content">
{{ .Content }}
<p> Some other content</p>
</div>
specific doc
<div class="content">
{{ content | safe }}
<p> Some other content</p>
</div>
specific doc
Not applicable.