ankidroid / ankidroiddocs

AnkiDroid Documentation
GNU General Public License v2.0
49 stars 51 forks source link

fix: links to Anki Manual URLs containing `--` #117

Closed snowtimeglass closed 1 year ago

snowtimeglass commented 1 year ago

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.

This 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.

To prevent it, the replaced URL will be enclosed between link:++ and ++

How Has This Been Tested?

Checked the preview screen of manual.asc in this branch image and confirmed that the correct sections are shown by clicking the link texts. image