3ad11ff363
This fixes several flaws in the link rewriter: - broken links on the docs side - multiple links on one line being mangled - byzantine logic Also generalize the logic of the Dockerfile so it is no longer specific to "registry" (env variable), which is a first step in making it possible to upstream all this into the base image and docs project. Added a number of tests (test.md) to validate the link replacer behavior (against test.compare.md), and embedded the test so that the doc build will fail if the link replacer does not behave. This is still sed, unfortunately. Signed-off-by: Olivier Gambier <olivier@docker.com>
17 lines
826 B
Markdown
17 lines
826 B
Markdown
|
|
WHATEVER
|
|
|
|
|
|
WHATEVER AGAIN
|
|
|
|
|
|
[display11](/placeholder/link-1) [display12](/placeholder/link_2) [display13](/placeholder/link/3)
|
|
[display21](/placeholder/link-1) [display22](/placeholder/link_2) [display23](/placeholder/link/3)
|
|
[display31.md](/placeholder/link-1) [display32.md](/placeholder/link_2) [display33.md](/placeholder/link/3)
|
|
[display41](/placeholder/link-1) [display42](/placeholder/link_2) [display43](/placeholder/link/3)
|
|
[display51](/placeholder/link-1) [display52](/placeholder/link_2) [display53](/placeholder/link/3)
|
|
[display61](/placeholder/link-1) [display62](/placeholder/link_2) [display63](/placeholder/link/3)
|
|
[display71](/placeholder/link-1#something-else) [display62](/placeholder/link_2#else) [display63](#else)
|
|
|
|
[dont-touch](https://somewhere/foo.md#dont) [dont-touch](https://somewhere/foo.md#dont)
|