Markdown Explorer Blog

Edit, Complete, and Format HTML Source

2 min read

Edit, Complete, and Format HTML Source

Switch an HTML tab to Editor mode to work with the original source. The CodeMirror-based editor saves the HTML string without converting it to Markdown.

Core editing tools

The source editor includes:

Try an Emmet abbreviation:

main.docs>section*2>h2+p

Press Tab to expand it, then replace the placeholder text.

Format the document

Use the toolbar or:

Format Document applies the HTML parser and also formats embedded CSS and JavaScript where supported.

Tag-aware commands

The editor can operate on a matching start and end tag:

For example, put the cursor in either section tag and press F2:

<section class="summary"> <p>Release summary</p> </section>

Rename it to article; both matching tags update.

Workspace-aware completion

Path completion is available in src, href, poster, and CSS url(...). The editor can also suggest classes and IDs from linked CSS and function names from linked JavaScript.

Diagnostics report malformed syntax, duplicate IDs, images without alt, and local paths that do not exist. Treat them as focused editing guidance, not a complete browser compatibility audit.

Use Safe Preview beside the source to verify the rendered result without enabling scripts by default.

© 2026 Markdown Explorer