mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-06 20:55:21 +00:00
Do markdown-it-attrs later than hashtag, to fix hastag issue
This commit is contained in:
parent
f6512bd053
commit
80d58a7fd8
@ -15,9 +15,8 @@ module.exports = function(eleventyConfig) {
|
|||||||
html: true
|
html: true
|
||||||
})
|
})
|
||||||
.use(require("markdown-it-footnote"))
|
.use(require("markdown-it-footnote"))
|
||||||
.use(require("markdown-it-attrs"))
|
|
||||||
.use(require("markdown-it-hashtag"), {
|
.use(require("markdown-it-hashtag"), {
|
||||||
hashtagRegExp: `[^\\s!@\\#\\$%\\^&\\*\\(\\)=\\+\\.,\\[\\{\\]\\};:'"\\?><]+(?!(.*\\}))`,
|
hashtagRegExp: `[^\\s!@\\#\\$%\\^&\\*\\(\\)=\\+\\.,\\[\\{\\]\\};:'"\\?><]+`,
|
||||||
preceding: "^|\\s",
|
preceding: "^|\\s",
|
||||||
})
|
})
|
||||||
.use(function(md){
|
.use(function(md){
|
||||||
@ -35,6 +34,7 @@ module.exports = function(eleventyConfig) {
|
|||||||
skipHtmlTags: { '[-]': ['pre'] }
|
skipHtmlTags: { '[-]': ['pre'] }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.use(require("markdown-it-attrs"))
|
||||||
.use(require('markdown-it-task-checkbox'), {
|
.use(require('markdown-it-task-checkbox'), {
|
||||||
disabled: true,
|
disabled: true,
|
||||||
divWrap: false,
|
divWrap: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user