tvl-depot/tools/cheddar/src
Vincent Ambo a9902dadcf feat(cheddar): Implement highlighting of CL and bug shortlinks
Implements highlighting of shortlinks like cl/123, or b/123.

Highlighting works by replacing the input Markdown using a simple
regular expression replacement.

We also considered parsing and replacing these links in the Markdown
AST, but it would have been significantly more complex (due to arena
allocation) for little upside and no obvious performance benefit.

Change-Id: I53f03fb17491046d89d0b7f605929571c11ee9a8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3082
Tested-by: BuildkiteCI
Reviewed-by: eta <eta@theta.eu.org>
2021-05-04 15:50:26 +00:00
..
bin refactor(cheddar): Split out a library with rendering logic 2021-05-03 13:57:43 +00:00
lib.rs feat(cheddar): Implement highlighting of CL and bug shortlinks 2021-05-04 15:50:26 +00:00
tests.rs feat(cheddar): Implement highlighting of CL and bug shortlinks 2021-05-04 15:50:26 +00:00