tools/cheddar: shortlinks are expanded inside code blocks / spans
#282
Opened by sterni at
This can be demonstrated in the bug tracker:
[b/261](https://b.tvl.fyi/261) [cl/8000](https://cl.tvl.fyi/8000) [r/500](https://code.tvl.fyi/commit/?id=refs/r/500)
Also works in inline code: [b/282](https://b.tvl.fyi/282)
.
To reproduce on the command line, use r/6337 and enter any shortlinks inside code (blocks) into cheddar --about-filter foo.md
.
That's intentional though, as people might write comments like
# This is related to [b/282](https://b.tvl.fyi/282)
Does it cause an issue for you?
tazjin at 2023-06-20T11·14+00
Ah, now that I did it I see what you mean, they turn into a Markdown substitution instead of the actual link.
tazjin at 2023-06-20T11·14+00
I guess we may need to expand shortlinks after converting Markdown to HTML and go directly from shortlink to HTML as well.
sterni at 2023-06-20T13·16+00
See also b/124.
sterni at 2024-03-14T16·02+00