Skip to content

Commit

Permalink
update svelte-asciidoc. (#267)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
fiatjaf committed Sep 11, 2024
1 parent 4bdda16 commit d017af1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ndk-svelte-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<!-- svelte-ignore a11y-click-events-have-key-events a11y-no-static-element-interactions -->
<div class="wiki-article {$$props.class??""}" on:click>
<SvelteAsciidoc
supportMarkdownTransition={event.created_at < 1726282800}
source={content}
naturalRenderers={{ a: AsciidocWikiLinkOrReferenceComponent}}
extra={{dispatch, ndk}}
Expand Down

0 comments on commit d017af1

Please sign in to comment.