From a9902dadcf080991c587a69e066a8b77b7b1cb94 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 30 Apr 2021 23:59:24 +0200 Subject: 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 --- tools/cheddar/Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/cheddar/Cargo.toml') diff --git a/tools/cheddar/Cargo.toml b/tools/cheddar/Cargo.toml index ae33197cac..6cc8163c73 100644 --- a/tools/cheddar/Cargo.toml +++ b/tools/cheddar/Cargo.toml @@ -11,6 +11,7 @@ lazy_static = "1.4" rouille = "3.0" syntect = "4.5.0" serde_json = "1.0" +regex = "1.4" [dependencies.serde] version = "1.0" -- cgit 1.4.1