We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我觉得不应该直接在body上replaceChild,这样很不好自定义样式。 document.body.replaceChild(newNode, markdownEl);
document.body.replaceChild(newNode, markdownEl);
我觉得最好是在xmp上指定要插入markdown代码的ID。 如下: ` <div id="
<xmp theme="united" style="display:none;" contente-id="content"> ### 这里是markdown内容 </xmp>` `document.getElementById("content").replaceChild(newNode, markdownEl);` 望采纳。
The text was updated successfully, but these errors were encountered:
Translated to English for visibility:
It would be better if we can specify the markdown text ID on xmp's attribute instead of directly replce child on the body. Example: <div id="content"></div> <xmp theme="united" style="display:none;" contente-id="content"> ### markdown content here ### </xmp>
It would be better if we can specify the markdown text ID on xmp's attribute instead of directly replce child on the body. Example:
<div id="content"></div> <xmp theme="united" style="display:none;" contente-id="content"> ### markdown content here ### </xmp>
so we can try something like document.getElementById("content").replaceChild(newNode, markdownEl);
so we can try something like
document.getElementById("content").replaceChild(newNode, markdownEl);
Sorry, something went wrong.
No branches or pull requests
我觉得不应该直接在body上replaceChild,这样很不好自定义样式。
document.body.replaceChild(newNode, markdownEl);
我觉得最好是在xmp上指定要插入markdown代码的ID。
如下:
` <div id="
The text was updated successfully, but these errors were encountered: