Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/src/markdownit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { full as MarkdownItEmoji } from 'https://esm.sh/markdown-it-emoji@3.0.0'
import { default as MarkdownItFootnote } from 'https://esm.sh/markdown-it-footnote@4.0.0';
import { default as MarkdownItTaskLists } from 'https://esm.sh/markdown-it-task-lists@2.1.1';
import { default as MarkdownItTexmath } from 'https://esm.sh/markdown-it-texmath@1.0.0';
import { default as MarkdownItGitHubAlerts } from 'https://esm.sh/markdown-it-github-alerts@1.0.0';
import Katex from 'https://esm.sh/katex@0.16.9';

const __args = parseArgs(Deno.args);
Expand Down Expand Up @@ -38,7 +39,8 @@ const md = new MarkdownIt('default', {
strict: false,
throwOnError: false,
},
});
})
.use(MarkdownItGitHubAlerts);

md.renderer.rules.link_open = (tokens, idx, options) => {
const token = tokens[idx];
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const result = await Promise.allSettled([
emit('client/src/script.ts', 'public/script.bundle.js'),

download(
'https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.5.1/github-markdown.min.css',
'https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.8.1/github-markdown.min.css',
'public/github-markdown.min.css',
(uint8array) => {
return new TextEncoder().encode(
Expand Down