Skip to content

Commit

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

0 comments on commit f6512bd

Please sign in to comment.