|
|
@@ -7,7 +7,6 @@ md.remark = {
|
|
|
gfm: true,
|
|
|
pedantic: false,
|
|
|
sanitize: false,
|
|
|
- yaml: true
|
|
|
// blocks (Array.<string>, default: list of block HTML elements)
|
|
|
},
|
|
|
description: {
|
|
|
@@ -16,8 +15,7 @@ md.remark = {
|
|
|
footnotes: 'Toggle reference footnotes and inline footnotes',
|
|
|
gfm: 'Toggle GFM (GitHub Flavored Markdown)',
|
|
|
pedantic: 'Don\'t fix any of the original markdown\nbugs or poor behavior',
|
|
|
- sanitize: 'Toggle HTML tag rendering',
|
|
|
- yaml: 'Enables raw YAML front matter to be detected at the top'
|
|
|
+ sanitize: 'Disable HTML tag rendering',
|
|
|
},
|
|
|
compile: (markdown, sendResponse) => {
|
|
|
chrome.storage.sync.get('remark', (res) => {
|
|
|
@@ -25,6 +23,7 @@ md.remark = {
|
|
|
.use(remark.parse, res.remark)
|
|
|
.use(remark.stringify)
|
|
|
.use(remarkSlug)
|
|
|
+ .use(remarkFrontmatter, ['yaml', 'toml'])
|
|
|
.use(remarkHTML, res.remark) // sanitize
|
|
|
.processSync(markdown)
|
|
|
.contents
|