trenz-gmbh / trenz-docs

An SPA wiki made by TRENZ
MIT License
3 stars 0 forks source link

Line breaks are treated incorrectly #39

Closed chucker closed 2 years ago

chucker commented 2 years ago

(This seems to be happening on the API end.)

Given Markdown like:

A database will have one or more **tables**, each of which contains
**rows**.

TRENZ Docs will currently insert a line break. Azure DevOps doesn't seem to do that. Neither does GitHub.

ricardoboss commented 2 years ago

This seems to be caused by an extension, which isn't even enabled AFAICT: https://github.com/xoofx/markdig/blob/master/src/Markdig.Tests/Specs/HardlineBreakSpecs.md

chucker commented 2 years ago

Yeah, that's definitely not the standard Markdown behavior. Line breaks should only be auto-inserted after two spaces. (Which I think is a bit weird, but oh well.)

ricardoboss commented 2 years ago

As it turns out, the markdown sent to the frontend is correct and I - stupidly - turned on the option breaks for Marked (ref: marked.js.org/using_advanced#options).