Skip to content

Commit

Permalink
Fix issue where markdown-it-attrs would be rendered as tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Eskild Steensen committed Jan 18, 2023
1 parent 63dca03 commit cca486c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ module.exports = function(eleventyConfig) {
})
.use(require("markdown-it-footnote"))
.use(require("markdown-it-attrs"))
.use(require("markdown-it-hashtag"),{
hashtagRegExp: `[^\\s!@#$%^&*()=+.,\[{\\]};:'"?><]+`
.use(require("markdown-it-hashtag"), {
hashtagRegExp: `[^\\s!@\\#\\$%\\^&\\*\\(\\)=\\+\\.,\\[\\{\\]\\};:'"\\?><]+`,
preceding: "^|\\s\\{",
})
.use(function(md){
md.renderer.rules.hashtag_open = function(tokens, idx) {
Expand Down

0 comments on commit cca486c

Please sign in to comment.