Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions default-md-files/morty-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ Do images still work?
> Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
> It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

## Blockquote Lists

> 1. List item 1
> 2. List item 2
> 3. List item 3
> 4. List item 4
> 5. List item 5
> 6. List item 6

## ⚠️ Github Alerts

> [!NOTE]
Expand Down
2 changes: 2 additions & 0 deletions src/markdown-to-html-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const parseToHTML = (markdown, options = {}) => {
textString += this.parser.parseInline(token.tokens)
} else if (token.type === 'space') {
textString += this.parser.parseInline([{ type: 'br', text: token.text, raw: token.raw }])
} else if (token.type === 'list') {
textString += marked.Renderer.prototype.list.call(this, token)
} else {
textString += this.parser.parseInline(tokens)
}
Expand Down