Getting an annoying bug in my Markdown editor where line spacing is acting weird but only for newlines right below headings...
Then once I insert a character, the line spacing gets reset to the default/correct value. #dev #AppKit
Login to reply
Replies (3)
Well, I'm back to fighting `NSTextView` and `swift-markdown` ๐ฉ
The `swift-markdown` package does not allow extending with more AST nodes. Unlike many web based parsers like Lexical and CodeMirror.
Haven't found a fix yet...
If I have text like `# Heading here\n`, then the newline below the heading will inherit the same styles. I have gotten the font size fixed, but still the spacing is the same as heading. This creates a massive gap between the heading and the newline below it.