Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 4, 2023

Conversation

snowtimeglass
Copy link
Contributor

@snowtimeglass snowtimeglass commented Sep 9, 2023

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

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 have different URLs.

This commit will replace the different URLs with actual ones. 

Simple replacement to `--` would cause undesirable substitution by AsciiDoc formatting. To prevent it, the replaced URL will be enclosed between `link:++` and `++` .
Copy link
Member

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very interesting! @david-allison no reason not to just merge things like this I think :-)

@mikehardy mikehardy merged commit f6b317f into ankidroid:main Nov 4, 2023
1 check passed
@snowtimeglass snowtimeglass deleted the double-hyphen-issue branch February 27, 2024 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The links to Anki Manual URLs containing -amp- don't match the current actual URL
3 participants