-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify autolinks processing between mdpo and md2po (#165)
* Unify autolinks processing between mdpo and md2po * Handle titles in autolinks uniformity process
- Loading branch information
Showing
21 changed files
with
279 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.. _implementation-notes: | ||
|
||
******************** | ||
Implementation notes | ||
******************** | ||
|
||
.. note:: | ||
|
||
Refer to the `CommonMark Specification v0.30`_ for descriptions of the terms | ||
used by this document. | ||
|
||
Autolink vs link clash | ||
====================== | ||
|
||
An autolink is something like ``<https://foo.bar>`` and a link is something | ||
like ``[foo](https://foo.bar)``. | ||
|
||
MD4C parser doesn't distinguish between an autolink and a link whose text and | ||
destination is the same. So, mdpo will treat all links whose text and | ||
destination is the same as autolinks. | ||
|
||
If a link has inside his text markup characters, even if its content if the | ||
same as its target, will be treated as different and rendered as a link. So, | ||
in practice: if a link text has markup characters, can't be an autolink. | ||
|
||
Link cloisterers | ||
================ | ||
|
||
Although a link title can be wrapped between different characters, mdpo will | ||
use ``"`` always due to MD4C parser limitations. | ||
|
||
.. _CommonMark Specification v0.30: https://spec.commonmark.org/0.30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.