You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Markdown on the Hazmapper doc (code, page) reveals obstacles.
Details
Obstacles
Internal anchor links should go to id-tagged elements.
Not blank anchors like <a id="whatever"></a>, but instead use:
images: {\#whatever ... }
headings: #### Whatever { #whatever }
problem: Some anchors are for text that should be a heading but can not be (e.g. "Non-linked mapillary assets", "Linked mapillary assets"). reason: The heading depth limit is reached (i.e. no ####### / <h7>). solution: Raise all the files heading levels up one. problem: Headings are at the correct level for being included onto /…/tools/visualization/ page. reason: The /…/tools/visualization/ page heading starts at #, so child pages start at ##. solutions: Proposal 1 or Proposal 2.
new links within text: [whatever](#whatever){ #whatever }
HTML should be markdown.
problem: Anchor links via markdown fail on /…/tools/visualization/ (but succeed on /…/tools/visualization/hazmapper/). reason: The include-markdown plugin outputs visualization#whatever instead of #whatever. solution: Do not use include-markdown. problem: The include plugin would cause other issues. reason: All MkDocs includes solutions have some drawback. solutions: Proposal 2 or Proposal 3.
Overview
Using Markdown on the Hazmapper doc (code, page) reveals obstacles.
Details
Obstacles
Internal anchor links should go to id-tagged elements.
Not blank anchors like
<a id="whatever"></a>
, but instead use:{\#whatever ... }
#### Whatever { #whatever }
#######
/<h7>
). solution: Raise all the files heading levels up one. problem: Headings are at the correct level for being included onto/…/tools/visualization/
page. reason: The/…/tools/visualization/
page heading starts at#
, so child pages start at##
. solutions: Proposal 1 or Proposal 2.[whatever](#whatever){ #whatever }
HTML should be markdown.
/…/tools/visualization/
(but succeed on/…/tools/visualization/hazmapper/
). reason: Theinclude-markdown
plugin outputsvisualization#whatever
instead of#whatever
. solution: Do not useinclude-markdown
. problem: Theinclude
plugin would cause other issues. reason: All MkDocs includes solutions have some drawback. solutions: Proposal 2 or Proposal 3.Proposals
Allow Would-Be Headings to be Headings
(e.g. "Non-linked mapillary assets", "Linked mapillary assets")
#
on each heading to reduce heading depth of Hazmapper doc.heading-offest
option when including Hazmapper doc.Link to Hazmapper Doc, Not "include" Them
include-markdown
syntax invisualization.md
to be (Markdown) links.Use Plugin Option to Fix Anchors That Break on Include
Use the
rewrite-relative-urls
option when including Hazmapper doc.Background
Noticed during WG-397.
The text was updated successfully, but these errors were encountered: