@elmethis/qwik 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.qwik.cjs +2 -1
- package/lib/index.qwik.mjs +2 -1
- package/package.json +1 -1
package/lib/index.qwik.cjs
CHANGED
|
@@ -3224,13 +3224,14 @@ const renderByToken = (tokens) => {
|
|
|
3224
3224
|
}
|
|
3225
3225
|
return results;
|
|
3226
3226
|
};
|
|
3227
|
-
const ElmMarkdown = qwik.component$(({ markdown }) => {
|
|
3227
|
+
const ElmMarkdown = qwik.component$(({ markdown, style }) => {
|
|
3228
3228
|
const tokens = marked.marked.setOptions({
|
|
3229
3229
|
gfm: true
|
|
3230
3230
|
}).lexer(markdown);
|
|
3231
3231
|
const elements = renderByToken(tokens);
|
|
3232
3232
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
3233
3233
|
class: styles["markdown-body"],
|
|
3234
|
+
style,
|
|
3234
3235
|
children: elements
|
|
3235
3236
|
});
|
|
3236
3237
|
});
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -3222,13 +3222,14 @@ const renderByToken = (tokens) => {
|
|
|
3222
3222
|
}
|
|
3223
3223
|
return results;
|
|
3224
3224
|
};
|
|
3225
|
-
const ElmMarkdown = component$(({ markdown }) => {
|
|
3225
|
+
const ElmMarkdown = component$(({ markdown, style }) => {
|
|
3226
3226
|
const tokens = marked.setOptions({
|
|
3227
3227
|
gfm: true
|
|
3228
3228
|
}).lexer(markdown);
|
|
3229
3229
|
const elements = renderByToken(tokens);
|
|
3230
3230
|
return /* @__PURE__ */ jsx("div", {
|
|
3231
3231
|
class: styles["markdown-body"],
|
|
3232
|
+
style,
|
|
3232
3233
|
children: elements
|
|
3233
3234
|
});
|
|
3234
3235
|
});
|