Skip to content

Commit

Permalink
feat: Use mangled plugin for email addresses (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoramite committed Aug 18, 2023
1 parent 4765e7e commit ce645ad
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 14 deletions.
94 changes: 80 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/amagaki/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"js-yaml": "^4.1.0",
"marked": "^5.1.1",
"marked-gfm-heading-id": "^3.0.4",
"marked-mangle": "^1.1.2",
"mime-types": "^2.1.30",
"minimatch": "^3.0.4",
"nunjucks": "^3.2.3",
Expand Down
2 changes: 2 additions & 0 deletions packages/amagaki/src/plugins/nunjucks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ import {Url} from '../url';
import {formatBytes} from '../utils';
import { marked } from 'marked';
import { gfmHeadingId } from "marked-gfm-heading-id";
import { mangle } from "marked-mangle";

marked.use(gfmHeadingId());
marked.use(mangle());

/**
* Built-in Nunjucks filters.
Expand Down

0 comments on commit ce645ad

Please sign in to comment.