Skip to content

Commit

Permalink
chore: Update marked to v11 (#218)
Browse files Browse the repository at this point in the history
Replaces #213 

Please see this issue for context:
markedjs/marked#3103
  • Loading branch information
DafyddLlyr authored Dec 4, 2023
1 parent 6a821ec commit 0d0a1e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"lodash.omit": "^4.5.0",
"lodash.set": "^4.3.2",
"lodash.startcase": "^4.4.0",
"marked": "^9.1.5",
"marked": "^11.0.0",
"prettier": "^3.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/export/bops/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export function formatProposalDetails({
}

export const parsePolicyRefs = (markdownOrHTML: string) => {
const htmlString = marked.parse(markdownOrHTML);
const htmlString = marked.parse(markdownOrHTML, { async: false }) as string;
const $ = load(htmlString);
const policyRefs = $("a").map((_index, el) => ({
text: $(el).prop("textContent")?.trim() ?? undefined,
Expand Down

0 comments on commit 0d0a1e6

Please sign in to comment.