Closed snowtimeglass closed 1 year ago
Anki Desktop manual has some sections which URLs contain two consecutive hyphens (--), but in AnkiDroid manual, the links which should be connected to the URLs actually have different URLs, and as a result the links don't open the sections.
--
https://docs.ankiweb.net/templates/generation.html#card-generation
deletion
This commit will replace the different URLs with actual ones.
Fixes #116
Simple replacement from -amp- to -- would cause undesirable substitution by AsciiDoc formatting.
-amp-
To prevent it, the replaced URL will be enclosed between link:++ and ++
link:++
++
Ex. link:++https://docs.ankiweb.net/templates/generation.html#card-generation--deletion++
https://docs.ankiweb.net/templates/generation.html#card-generation--deletion
Ref: AsciiDoc > Passthroughs > Inline Passthroughs > Single and double plus https://docs.asciidoctor.org/asciidoc/latest/pass/pass-macro/#single-double-plus
Checked the preview screen of manual.asc in this branch and confirmed that the correct sections are shown by clicking the link texts.
Purpose / Description
Anki Desktop manual has some sections which URLs contain two consecutive hyphens (
--
), but in AnkiDroid manual, the links which should be connected to the URLs actually have different URLs, and as a result the links don't open the sections.https://docs.ankiweb.net/templates/generation.html#card-generation
--deletion
https://docs.ankiweb.net/templates/generation.html#card-generation--deletionhttps://docs.ankiweb.net/templates/generation.html#card-generation
-amp-deletion
https://docs.ankiweb.net/templates/generation.html#card-generation-amp-deletionThis commit will replace the different URLs with actual ones.
Fixes
Fixes #116
Approach
Simple replacement from
-amp-
to--
would cause undesirable substitution by AsciiDoc formatting.https://docs.ankiweb.net/templates/generation.html#card-generation
--E2%80%8Bdeletion
https://docs.ankiweb.net/templates/generation.html#card-generation--E2%80%8BdeletionTo prevent it, the replaced URL will be enclosed between
link:++
and++
Ex. link:++
https://docs.ankiweb.net/templates/generation.html#card-generation--deletion
++Ref: AsciiDoc > Passthroughs > Inline Passthroughs > Single and double plus https://docs.asciidoctor.org/asciidoc/latest/pass/pass-macro/#single-double-plus
How Has This Been Tested?
Checked the preview screen of manual.asc in this branch and confirmed that the correct sections are shown by clicking the link texts.