You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But that is just all! Actually they are rarely used, and harmful in the point of view from Markdown compatibility.
![]() is an image syntax in CommonMark, not the color syntax. We are making efforts to keep compatible Marpit syntax with Markdown documents, but the common Markdown parser will rest the broken <img> element to the output of rendering.
We already have provided an alternative way to set colors. It means there are no feature regressions even if removed the shorthand syntax.
To make the image syntax parsable as color setting, we have to provide the parser for CSS color. Today, both of CSS Color Module Level 4 and 5 are evolving to support a lot of color spaces and color conversion functions. Using declarative directive syntax is obviously smart rather than enhancing Marpit-specific color parser.
Marpit's
![]()
shorthand syntaxes for settings colors can set the text color and background color for the current slide in less characters than the scoped local directive.But that is just all! Actually they are rarely used, and harmful in the point of view from Markdown compatibility.
![]()
is an image syntax in CommonMark, not the color syntax. We are making efforts to keep compatible Marpit syntax with Markdown documents, but the common Markdown parser will rest the broken<img>
element to the output of rendering.![](red)
➡️<!-- _color: red -->
/<style scoped>:root { color: red; }</style>
![bg](red)
➡️<!-- _backgroundColor: red -->
/<style scoped>:root { background-color: red; }</style>
.We will progress with deprecation and removal of shorthand syntax for setting text and background color.
The text was updated successfully, but these errors were encountered: