Closed jackyzha0 closed 11 months ago
Related issue within Quartz: https://github.com/jackyzha0/quartz/issues/638
https://github.com/atomiks/rehype-pretty-code/issues/69#issuecomment-1814395653 the crux of this issue seems to be the same one that this other comment mentions
is there a way to keep node.properties
after it gets transformed into a div
?
@jackyzha0 I think the issue was the transformation of properties
wasn't respecting the existing properties, can you check if the linked PR ^ fixes it?
Before upgrading to
0.12.1
, Quartz used to have code that looks like this:This would run in a
remark
plugin beforerehype-pretty-code
does. I'm guessing that the old implementation would respect thehProperties
on thecode
block butshikiji
straight up just replaces it? In any case, this would also be solved ifdata-language
contained the code block language even if it isn't a recognized language (right now, it seems to default to the empty string if it's not detected)