Have you checked for existing feature requests?
Summary
Pulsar should be able to handle simple diff syntax within Markdown code blocks. e.g.
- line 1
- line 2
+ new line 1
+ new line 2
Currently it highlights them just as a default gfm text scope:
For reference this is how it looks in Helix:
This is at least supported in markdown-preview (at least with the default Linguist highlighter):
I appreciate that (I think?) we don't support diff highlighting out of the box? (The language-git package suggests installing https://web.pulsar-edit.dev/packages/language-diff) but installing that doesn't seem inject it into the GFM grammar either.
Kind of related but maybe we should integrate diff support directly into language-git by default?
What benefits does this feature provide?
Diff highlighting in markdown code blocks
Any alternatives?
Not that I could find
Other examples:
Helix. Very likely in VSCode too.
Have you checked for existing feature requests?
Summary
Pulsar should be able to handle simple
diffsyntax within Markdown code blocks. e.g.Currently it highlights them just as a default
gfmtext scope:For reference this is how it looks in
Helix:This is at least supported in
markdown-preview(at least with the defaultLinguisthighlighter):I appreciate that (I think?) we don't support
diffhighlighting out of the box? (Thelanguage-gitpackage suggests installing https://web.pulsar-edit.dev/packages/language-diff) but installing that doesn't seem inject it into the GFM grammar either.Kind of related but maybe we should integrate
diffsupport directly intolanguage-gitby default?What benefits does this feature provide?
Diff highlighting in markdown code blocks
Any alternatives?
Not that I could find
Other examples:
Helix. Very likely in VSCode too.