Skip to content

Commit 847d11d

Browse files
committed
Mention embedding html in md file
1 parent 001303c commit 847d11d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

documentation/pages/custom-html.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ layout: default
4545
</div>
4646
```
4747

48+
**Writing big HTML snippets in `.md` files**
49+
50+
Markdown treats indented blocks as code. If you paste large HTML into a `.md` post, keep the block flush-left (no leading spaces) and surround it with blank lines, or save the file as `.html`/`.hbs` instead. Otherwise the parser will wrap the HTML in `<pre><code>` and it will look like a code sample.
51+
4852
### Handlebars Template Files (`.hbs`)
4953

5054
Dynamic template files that can use Handlebars expressions and have access to all template variables.

0 commit comments

Comments
 (0)