Description
When Insert CSS File injects a CSS file's contents, Marked's tag processor
incorrectly runs over the CSS content and wraps hex color values in
<span class="mkstyledtag"> elements, completely breaking the CSS.
Steps to Reproduce
- Create a CSS file containing hex color values, e.g.:
.kriah-ornament {
color: #8B6914;
}
- Add an Insert CSS File action pointing to this file
- Preview or export the document
- Inspect the injected CSS
Expected Behavior
CSS contents should be injected verbatim without any processing.
Actual Behavior
.kriah-ornament {
color: <span class="mkstyledtag">#8B6914</span>;
}
The # character in hex colors is being interpreted as a Marked styled tag,
breaking every color declaration in the file.