-
|
There're various macros for crossrefs to specced definitions (e.g. Most such links have a text identical to the linked page's title, however page titles can change over time, and it's both impractical and unnecessary to require a writer that changes even a single page title to also change every occurrence of this title on other pages. (The situation is even more serious for l10n contents as there're much fewer people there.) Therefore, I propose to add a new macro where:
This macro can reuse the code of existing macros like Note:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
What you are looking for is exactly the |
Beta Was this translation helpful? Give feedback.
-
|
Not all markdown links that point to a page use the same page's title as the link text, e.g.
Also, what about if we want to link to a section on the page, for example What if we automate this instead? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, all. I think I can close as resolved for now. At the time of writing, we have tests in CI for broken link checks -> mdn/content#31265 and as Josh mentioned, we're not likely to add more macros for the time being. |
Beta Was this translation helpful? Give feedback.
Yes, that's why this proposal was limited to link texts identical to page titles :)
This is good, but lacks the granularity of case-changing (or is it unnecessary as well?) (But I wonder what's the guideline to decide what postprocessing should be done in yari and what in content.)