Skip to content

Commit

Permalink
Fix prepare myst script
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Jun 7, 2024
1 parent 77dc6c4 commit 8cb914a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions paper/prepare-myst.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ ${content}
:::
`;
})
// Replace markdown links with myst links
.replace("# Summary", "# Overview");
.replace(/\\autoref{(.*?)}/g, '[@$1]').replace(/(\[@.*?\])(\w)/g, '$1 $2')
.replace("# Summary", "# General Summary")
.replace("# Overview", "# Project Overview")

Deno.writeTextFileSync(
"main.md",
Expand Down

0 comments on commit 8cb914a

Please sign in to comment.