From d017af1e4125b03f241e67798905c1b1164934f5 Mon Sep 17 00:00:00 2001 From: fiatjaf_ Date: Wed, 11 Sep 2024 06:22:56 -0300 Subject: [PATCH] update svelte-asciidoc. (#267) this fixes an issue with tables. it also introduces a way to disable the markdown transitional syntax that makes the asciidoc parser understand some random markdown syntax directives like "#" (which should be "=" in asciidoc) and just confuses everybody. it should have been disabled since day one, but since I missed that this commit keeps it for all articles in the past and disables it only for events authored after 2024-09-14 (two weeks expected for this change to be deployed). --- ndk-svelte-components/package.json | 2 +- ndk-svelte-components/src/lib/event/content/Kind30818.svelte | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ndk-svelte-components/package.json b/ndk-svelte-components/package.json index 0ade837f..be607e65 100644 --- a/ndk-svelte-components/package.json +++ b/ndk-svelte-components/package.json @@ -84,7 +84,7 @@ "rehype-autolink-headings": "^7.0.0", "rehype-slug": "^6.0.0", "sanitize-html": "^2.11.0", - "svelte-asciidoc": "^0.0.2", + "svelte-asciidoc": "0.0.6", "svelte-preprocess": "^5.0.4", "svelte-time": "^0.8.3" }, diff --git a/ndk-svelte-components/src/lib/event/content/Kind30818.svelte b/ndk-svelte-components/src/lib/event/content/Kind30818.svelte index 02581c07..aecd4dea 100644 --- a/ndk-svelte-components/src/lib/event/content/Kind30818.svelte +++ b/ndk-svelte-components/src/lib/event/content/Kind30818.svelte @@ -24,6 +24,7 @@