-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indentation broken when folding heading followed by list #25
Comments
Seems it is a bug of CodeMirror. List lines' style is unexpectedly merged to header lines'. Add a normal paragraph after the list and everything goes correctly. |
I think it's specific to HyperMD. For example, CodeMirror official demo works: Perhaps it's something else due to the folding plugin? or some option missing? |
pre.HyperMD-header {
padding-left: 0 !important
}
pre.HyperMD-header > span > span:first-child {
margin-left: 0 !important
} Not sure if this works. Written on my phone |
When content is folded, the style of last line is merged to the heading line. Therefore, to fix this, give header line's style higher priority, like .... .cm-s-hypermd-light pre.HyperMD-header {
line-height: 1.5 !important;
font-family: inherit !important;
border: 0 !important;
} Hmmm... anyway, it works. |
Feat/widget args add editor
Steps to reproduce:
Expected:
All OK
Actual:
heading is folded but also offsets incorrectly
The text was updated successfully, but these errors were encountered: