From 22a5927eaf1bfcbca70e7fa5a6ec6795b1294eec Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Fri, 2 Nov 2018 07:38:54 +0800 Subject: [PATCH] docs(helper): about markdown in html tag, fixed #655 fixed #667 --- docs/helpers.md | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/docs/helpers.md b/docs/helpers.md index 450ddb29..b047d367 100644 --- a/docs/helpers.md +++ b/docs/helpers.md @@ -88,6 +88,7 @@ You will get `link`html. Do not worry, you can still set ti ![logo](https://docsify.js.org/_media/icon.svg ':size=100') + ![logo](https://docsify.js.org/_media/icon.svg ':size=10%') ``` @@ -99,4 +100,46 @@ You will get `link`html. Do not worry, you can still set ti ```md ### 你好,世界! :id=hello-world -``` \ No newline at end of file +``` + +## Markdown in html tag + +You need to insert a space between the html and markdown content. +This is useful for rendering markdown content in the details element. + +```markdown +
+Self-assessment (Click to expand) + +- Abc +- Abc + +
+``` + +
+Self-assessment (Click to expand) + +- Abc +- Abc + +
+ +Or markdown content can be wrapped in html tag. + +```markdown +
+ +- listitem +- listitem +- listitem + +
+``` + +
+ +- Abc +- Abc + +