docma
docma copied to clipboard
HTML in markdown failed to render
https://takase1121.github.io/Haruna/
The failed p and img tags are pretty obvious. Can I get them to work?
Pls paste or attach your docma.json / config.
{
"src": [
"./src/*.js",
"./README.md"
],
"dest": "./docs",
"clean": true,
"jsdoc": {
"plugins": ["plugins/markdown"]
},
"app": {
"title": "Haruna Documentation",
"entrance": "content:readme",
"base": "/Haruna",
"routing": {
"method": "path"
}
}
}
Pls remove "plugins": ["plugins/markdown"] from your config. Docma includes a markdown parser.
The problem with HTML tag still persists. Not only that, If I disable jsdoc markdown plugin markdown in jsdoc is now ignored! Any ideas on how to fix it?
Can you upload a sample project for me to reproduce the problem? I'll try to look into it tomorrow.
Just zip, then drag & drop here pls.
Haruna.zip This should be it. Thank you!
I got it! I turned markdown.sanitize to false in docma config and it worked!
I had to do this as well to get html in markdown to work. It says in the docs that it's by default set to false... Do the docs need to be updated?