mity / md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
MIT License
756 stars 138 forks source link

Added MD_SPAN_A_DETAIL.is_autolink #181

Closed snej closed 5 months ago

snej commented 1 year ago

This allows the processor to tell whether an <A> tag is the result of an autolink, and customize its output. For example, I want to emit an autolink of an image URL as an <IMG> tag, and an autolink of a YouTube URL as a video embed.

codecov[bot] commented 1 year ago

Codecov Report

Merging #181 (5df6ece) into master (e9ff661) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #181   +/-   ##
=======================================
  Coverage   94.32%   94.32%           
=======================================
  Files           3        3           
  Lines        3100     3101    +1     
=======================================
+ Hits         2924     2925    +1     
  Misses        176      176           
Impacted Files Coverage Δ
src/md4c.c 94.23% <100.00%> (+<0.01%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

ec1oud commented 1 year ago

Sounds like a useful feature.