kivikakk / comrak

CommonMark + GFM compatible Markdown parser and renderer
Other
1.12k stars 133 forks source link

Return brackets in autolinks behavior back to cmark-gfm #386

Closed digitalmoksha closed 2 months ago

digitalmoksha commented 2 months ago

Return brackets in autolinks behavior back to what is found in cmark-gfm

When relaxed-autolinks is specified, also allow balanced brackets/curly braces in autolink, in addition to the standard parentheses. This also helps with detection of autolinks in [[...]]

Related to https://github.com/kivikakk/comrak/issues/382

github-actions[bot] commented 2 months ago
Command Mean [ms] Min [ms] Max [ms] Relative
./bench.sh ./comrak-b0f39ef 318.3 ± 1.6 315.4 322.3 2.87 ± 0.03
./bench.sh ./comrak-main 317.7 ± 0.8 316.1 319.7 2.87 ± 0.03
./bench.sh ./pulldown-cmark 110.7 ± 1.1 109.6 115.7 1.00
./bench.sh ./cmark-gfm 117.2 ± 0.7 115.8 119.0 1.06 ± 0.01
./bench.sh ./markdown-it 475.7 ± 2.9 473.4 488.6 4.30 ± 0.05

Run on Sun Apr 28 18:12:31 UTC 2024

digitalmoksha commented 2 months ago

@kivikakk wdyt?

digitalmoksha commented 2 months ago

@kivikakk would it be possible to get a new release cut?

kivikakk commented 2 months ago

It's on the way! :)

kivikakk commented 2 months ago

Done.

digitalmoksha commented 2 months ago

👍 🙇 🙏