im currently using lezer’s highlighter for Markdown, but how do i only show markdown marks when the line is active and only the rendered part without markdown mark on non-active line like obsidian?
just want to hide #
and all when the line isnt active
my current working code for highlighting is
import { HighlightStyle } from "@codemirror/language";
import { tags, Tag, styleTags } from "@lezer/highlight";
export const highlightStyle = HighlightStyle.define([
{
tag: tags.heading1,
color: "white",
fontSize: "2em",
fontWeight: "400",
},
...
]);