tvl-depot/tools/cheddar/Cargo.toml
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

18 lines
299 B
TOML

[package]
name = "cheddar"
version = "0.2.0"
authors = ["Vincent Ambo <mail@tazj.in>"]
edition = "2018"
[dependencies]
clap = "2.33"
comrak = "0.10"
lazy_static = "1.4"
rouille = "3.0"
syntect = "4.5.0"
serde_json = "1.0"
regex = "1.4"
[dependencies.serde]
version = "1.0"
features = [ "derive" ]