You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A single # in the textblock generates a h2 in HTML. It is not a direct bug but a wrong implementation of Markdown, as it is intentional in there.
Additional context
There is the intention to prevent the editor from creating to much h1 headings so it is not clearly a bug but a feature, but it is wrong implementation.
The text was updated successfully, but these errors were encountered:
Describe the bug
A single # in the textblock generates a h2 in HTML. It is not a direct bug but a wrong implementation of Markdown, as it is intentional in there.
volto/packages/volto-slate/src/editor/plugins/Markdown/constants.js
Lines 23 to 31 in 467e0a3
I know that you want to limit titles to an h2 heading, but a user may expect to have an h1 with single #.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A single # should generate a h1 and two # should generate a h2 etc.
As stated in the specification:
https://spec.commonmark.org/0.31.2/#atx-heading
or here
https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#headings
Screenshots
Software (please complete the following information):
Additional context
There is the intention to prevent the editor from creating to much h1 headings so it is not clearly a bug but a feature, but it is wrong implementation.
The text was updated successfully, but these errors were encountered: