diff --git a/apps/api.json b/apps/api.json index 511730eb..0c05370c 100644 --- a/apps/api.json +++ b/apps/api.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "📜", - "previous": "&miGORZ8BwjHg2YO0t4bms6SI28XWPYqnqOZ8u9zsbZc=.sha256" + "previous": "&BEf0nraBdHk/+PWqx6tOSu5rheWVaxaL7orAOz3285M=.sha256" } diff --git a/apps/api/app.js b/apps/api/app.js index b2215502..95efa2c0 100644 --- a/apps/api/app.js +++ b/apps/api/app.js @@ -21,7 +21,7 @@ function* treeify(prefix, o) { function markdown(md) { let parsed = new commonmark.Parser().parse(md ?? '*undocumented*'); - return new commonmark.HtmlRenderer().render(parsed); + return new commonmark.HtmlRenderer({safe: true}).render(parsed); } function document(api) { diff --git a/apps/blog.json b/apps/blog.json index d6a298e8..efdd6cd3 100644 --- a/apps/blog.json +++ b/apps/blog.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🪵", - "previous": "&TIrBnpN3iz3O9L9MCCteAcVJZjA83EKdcfu4SCM76VE=.sha256" + "previous": "&3jabNEk6W2uolzTvfXX6fcWF50N3501vtgZ6ZxFVJ1s=.sha256" } diff --git a/apps/blog/blog.js b/apps/blog/blog.js index d2ba4e01..f56ce9a6 100644 --- a/apps/blog/blog.js +++ b/apps/blog/blog.js @@ -52,8 +52,8 @@ export async function get_blog_message(id) { } export function markdown(md) { - let reader = new commonmark.Parser({safe: true}); - let writer = new commonmark.HtmlRenderer(); + let reader = new commonmark.Parser(); + let writer = new commonmark.HtmlRenderer({safe: true}); let parsed = reader.parse(md || ''); let walker = parsed.walker(); let event, node; diff --git a/apps/issues.json b/apps/issues.json index b3ecbdaa..73ff5b4e 100644 --- a/apps/issues.json +++ b/apps/issues.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦟", - "previous": "&cUqvSDUls3jn0haD85LPFAGdkc8wFuy347TtATNcJgg=.sha256" + "previous": "&4QfQjoCbdmCRu0nIBdOFiHBydYlDyyXrWqve6ELAmKA=.sha256" } diff --git a/apps/issues/tf-utils.js b/apps/issues/tf-utils.js index 444e2a93..dcb702f4 100644 --- a/apps/issues/tf-utils.js +++ b/apps/issues/tf-utils.js @@ -61,8 +61,8 @@ function image(node, entering) { } export function markdown(md) { - var reader = new commonmark.Parser({safe: true}); - var writer = new commonmark.HtmlRenderer(); + var reader = new commonmark.Parser(); + var writer = new commonmark.HtmlRenderer({safe: true}); writer.image = image; var parsed = reader.parse(md || ''); parsed = linkify.transform(parsed); diff --git a/apps/journal.json b/apps/journal.json index 4aa00c25..b9070bad 100644 --- a/apps/journal.json +++ b/apps/journal.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "📝", - "previous": "&b//KqE4Vx6kOSBRODK1p/8wjOLKZJ+CBB5IkaBt5YsM=.sha256" + "previous": "&5LpOTEnor/rYFk3axyfmmehAoq9aEwNQRH4jwNhRQ7o=.sha256" } diff --git a/apps/journal/tf-journal-entry.js b/apps/journal/tf-journal-entry.js index 530a232b..af737c5a 100644 --- a/apps/journal/tf-journal-entry.js +++ b/apps/journal/tf-journal-entry.js @@ -18,8 +18,8 @@ class TfJournalEntryElement extends LitElement { } markdown(md) { - var reader = new commonmark.Parser({safe: true}); - var writer = new commonmark.HtmlRenderer(); + var reader = new commonmark.Parser(); + var writer = new commonmark.HtmlRenderer({safe: true}); var parsed = reader.parse(md || ''); return writer.render(parsed); } diff --git a/apps/ssb.json b/apps/ssb.json index 35365dc2..2da156a5 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&+UZSxjoucLAl5r/nfRNu5KXx3K/PdutGnizL/Cn2eCU=.sha256" + "previous": "&GDAJLaMKjeSXooWgpbw7G/40hgtRT1mYVK2twtEhWHA=.sha256" } diff --git a/apps/ssb/tf-utils.js b/apps/ssb/tf-utils.js index e929d1ff..0fda5abb 100644 --- a/apps/ssb/tf-utils.js +++ b/apps/ssb/tf-utils.js @@ -81,8 +81,8 @@ function attrs(node) { } export function markdown(md) { - let reader = new commonmark.Parser({safe: true}); - let writer = new commonmark.HtmlRenderer(); + let reader = new commonmark.Parser(); + let writer = new commonmark.HtmlRenderer({safe: true}); writer.image = image; writer.code = code; writer.attrs = attrs; diff --git a/apps/wiki.json b/apps/wiki.json index 9b73770e..c818d412 100644 --- a/apps/wiki.json +++ b/apps/wiki.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "📝", - "previous": "&DaYqKHRBKhjFGaOzbKZ1+/pLspJeEkDJYTF2B50tH6k=.sha256" + "previous": "&4F4D8+QlJVaxXywChQrNTdSV4Y3TvJ0xxqdq/i9HUWA=.sha256" } diff --git a/apps/wiki/handler.js b/apps/wiki/handler.js index 494d072a..266afd73 100644 --- a/apps/wiki/handler.js +++ b/apps/wiki/handler.js @@ -2,8 +2,8 @@ import * as utils from './utils.js'; import * as commonmark from './commonmark.min.js'; function markdown(md) { - let reader = new commonmark.Parser({safe: true}); - let writer = new commonmark.HtmlRenderer(); + let reader = new commonmark.Parser(); + let writer = new commonmark.HtmlRenderer({safe: true}); let parsed = reader.parse(md || ''); let walker = parsed.walker(); let event; diff --git a/apps/wiki/tf-wiki-doc.js b/apps/wiki/tf-wiki-doc.js index 10fbaa08..3a7e006d 100644 --- a/apps/wiki/tf-wiki-doc.js +++ b/apps/wiki/tf-wiki-doc.js @@ -20,8 +20,8 @@ class TfWikiDocElement extends LitElement { } markdown(md) { - let reader = new commonmark.Parser({safe: true}); - let writer = new commonmark.HtmlRenderer(); + let reader = new commonmark.Parser(); + let writer = new commonmark.HtmlRenderer({safe: true}); let parsed = reader.parse(md || ''); let walker = parsed.walker(); let event;