Merge pull request #29 from chrishrb/12-gfm-doesnt-need-two-spaces-at-the-end-of-line-for-lineabreaks

12 Enable hard linebreaks
This commit is contained in:
Christoph
2024-12-26 18:58:20 +01:00
committed by GitHub

View File

@@ -23,7 +23,7 @@ var blockquotes = []string{"Note", "Tip", "Important", "Warning", "Caution"}
func (client *Client) MdToHTML(bytes []byte) []byte {
extensions := parser.NoIntraEmphasis | parser.Tables | parser.FencedCode |
parser.Autolink | parser.Strikethrough | parser.SpaceHeadings | parser.HeadingIDs |
parser.BackslashLineBreak | parser.MathJax
parser.BackslashLineBreak | parser.MathJax | parser.HardLineBreak
p := parser.NewWithExtensions(extensions)
doc := p.Parse(bytes)