Giter VIP home page Giter VIP logo

Comments (5)

laobubu avatar laobubu commented on September 6, 2024

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.

from hypermd.

nokola avatar nokola commented on September 6, 2024

I think it's specific to HyperMD. For example, CodeMirror official demo works:
https://codemirror.net/demo/folding.html
image

image

Perhaps it's something else due to the folding plugin? or some option missing?

from hypermd.

laobubu avatar laobubu commented on September 6, 2024
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

from hypermd.

nokola avatar nokola commented on September 6, 2024

yes, works, thanks for the response.
Found another, maybe related issue:

H2

test

code

H2

The H2 appears broken style if it ends with code:
image

from hypermd.

laobubu avatar laobubu commented on September 6, 2024

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.

from hypermd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.