Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Cole Peters <[email protected]>
  • Loading branch information
macdonst and colepeters authored Mar 20, 2024
1 parent abda5ef commit bd42ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/docs/md/patterns/rendering-markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ That's all you need in order to get started using markdown in an Enhance app.
It is totally possible to include custom elements in Markdown source files and then have the generated markup rendered by Enhance SSR.
When authoring Markdown with custom elements, it is best to add blank lines around opening and closing tags. For example on this page we use the `doc-code` custom element to provide syntax highlighting of source code. In markdown, use of a custom element would look like:
When authoring Markdown with custom elements, it is best to add blank lines around opening and closing tags. For example on this page we use the `doc-code` custom element to provide syntax highlighting of source code. In Markdown, use of a custom element would look like:
```
# Custom Elements in Markdown
Expand All @@ -242,7 +242,7 @@ Hey, that's pretty neat!
```
### Render order matters
When rendering HTML from Markdown that includes custom elements the rendering order matters. First, render the markdown to HTML with Arcdown then "enhance" that HTML by running it through Enhance SSR before sending it to the browser.
When rendering HTML from Markdown which includes custom elements, the rendering order matters. First, render the Markdown to HTML with Arcdown. Then, "enhance" that HTML by running it through Enhance SSR before sending it to the browser.
```
.md → [Arcdown] → HTML → [Enhance SSR] → browser
Expand Down

0 comments on commit bd42ed8

Please sign in to comment.