Skip to content

Commit

Permalink
Merge pull request #1908 from cfpb/ans_update_marked
Browse files Browse the repository at this point in the history
Update `marked`
  • Loading branch information
anselmbradford authored Feb 9, 2024
2 parents 55d7bb2 + eedd6f2 commit dddbd1d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/admin/src/widgets/genericPreviewTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import template from '../../../_includes/generic-content.html';
export default class Preview extends Component {
componentDidMount() {
liquidEngine.registerFilter('markdownify', (initial) =>
marked(initial || ''),
marked.parse(initial || ''),
);
}

Expand Down
2 changes: 1 addition & 1 deletion docs/admin/src/widgets/pagePreviewTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class Preview extends Component {
);
liquidEngine.registerFilter('xml_escape', (initial) => encode(initial));
liquidEngine.registerFilter('markdownify', (initial) =>
marked(initial || ''),
marked.parse(initial || ''),
);
liquidEngine.registerFilter(
'strip',
Expand Down
Binary file added npm-packages-offline-cache/marked-12.0.0.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/marked-4.2.12.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"anchor-js": "5.0.0",
"html-entities": "2.4.0",
"lunr": "2.3.9",
"marked": "4.2.12",
"marked": "12.0.0",
"netlify-cms": "2.10.192",
"normalize-css": "2.3.1",
"react": "18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9042,10 +9042,10 @@ markdown-table@^2.0.0:
dependencies:
repeat-string "^1.0.0"

marked@4.2.12:
version "4.2.12"
resolved "https://registry.yarnpkg.com/marked/-/marked-4.2.12.tgz#d69a64e21d71b06250da995dcd065c11083bebb5"
integrity sha512-yr8hSKa3Fv4D3jdZmtMMPghgVt6TWbk86WQaWhDloQjRSQhMMYCAro7jP7VDJrjjdV8pxVxMssXS8B8Y5DZ5aw==
marked@12.0.0:
version "12.0.0"
resolved "https://registry.yarnpkg.com/marked/-/marked-12.0.0.tgz#051ea8c8c7f65148a63003df1499515a2c6de716"
integrity sha512-Vkwtq9rLqXryZnWaQc86+FHLC6tr/fycMfYAhiOIXkrNmeGAyhSxjqu0Rs1i0bBqw5u0S7+lV9fdH2ZSVaoa0w==

marky@^1.2.0, marky@^1.2.2:
version "1.2.5"
Expand Down

0 comments on commit dddbd1d

Please sign in to comment.