Should we change the HedgeDoc default for breaks from true
to false
?
The default behaviour for new lines in HedgeDoc is, that a new line in the markdown code produces a new line in the rendering output. (breaks: true
)
This is not common markdown behaviour and can be toggled off by using the frontmatter option (the YAML Metadata at the beginning of notes) breaks: false
.
In common markdown normal new lines are ignored. You have to add spaces to the end of a line followed by a new line (see CommonMark spec). (breaks: false
)
In the following we try to argue about the proposal to change the default behaviour to be breaks: false
in HedgeDoc 2.0:
Pro
- HedgeDoc is mostly based on the CommonMark standard.
breaks
is one of the few differences where we donât follow the standard and for sure itâs the biggest rule we break. In fact most (perhaps all) markdown implementation incorporate this standard. - Other programs expect
breaks: false
from markdown files, so exporting and further use of files would be easier.- This could be mittigated by an extra export option (âExport CommonMarkâ) that adds spaces, but would be confusing for people who donât know the differences.
Contra
- A change of this behaviour breaks the default our users are accustomed to. Also current notes would break, if they donât have the
breaks
option set.- We could add
breaks: false
to all existing notes that donât already havebreaks
in their frontmatter while upgrading 1.x instances to 2.0.
- We could add
- The newline situation of CommonMark is not very convenient for new users (of markdown or HedgeDoc) as it works not in the way other text programs do.
- Other aspects of markdown are unintuitive, too (e.g. wrapping text in
**
to make it bold)
- Other aspects of markdown are unintuitive, too (e.g. wrapping text in
What do you - the community members - think? Feel free to write a response to this post and/or participate in this poll.
true
to false
?- Yes
- No
0 voters