We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce3d95b commit ef6c4a0Copy full SHA for ef6c4a0
src/utils.ts
@@ -172,17 +172,14 @@ export const initRenderer = ({
172
list(body, ordered, start) {
173
const type = ordered ? "ol" : "ul";
174
const startatt = ordered && start !== 1 ? ' start="' + start + '"' : "";
175
+ const styles = parseCssInJsToInlineCss(
176
+ finalStyles[ordered ? "ol" : "ul"]
177
+ );
178
return (
179
"<" +
180
type +
181
startatt +
- `${
- parseCssInJsToInlineCss(finalStyles.ol) !== ""
- ? ` style="${parseCssInJsToInlineCss(
182
- finalStyles[ordered ? "ol" : "ul"]
183
- )}"`
184
- : ""
185
- } >\n` +
+ `${styles !== "" ? ` style="${styles}"` : ""} >\n` +
186
body +
187
"</" +
188
0 commit comments