Document the usage of hardWrap option for markdown rendering (#1951)

This commit is contained in:
Jacob Zhong
2023-01-10 20:29:39 -05:00
committed by GitHub
parent 8b5afdfb47
commit 3fa1792d24
@@ -32,6 +32,9 @@ For details on the extensions, refer to [this section](https://github.com/yuin/g
Some settings explained:
hardWrap
: By default, Goldmark ignores newlines within a paragraph. Set to `true` to render newlines as `<br>` elements.
unsafe
: By default, Goldmark does not render raw HTMLs and potentially dangerous links. If you have lots of inline HTML and/or JavaScript, you may need to turn this on.