marky-markdown
marky-markdown copied to clipboard
review badge processing
from a quick read there are few things that concern me about how we process badges:
- we add classes that GitHub doesn't add
- we statically list a set of origins that is definitely not complete and we haven't updated in a while
given the product direction of parity with GitHub, and a desire for improved performance, i'd like to revisit this code and remove unnecessary processing. thoughts?
relevant code:
- impl https://github.com/npm/marky-markdown/blob/0302f9f515248a86153f67ba26d48729a87ff45e/lib/badges.js
- tests https://github.com/npm/marky-markdown/blob/0302f9f515248a86153f67ba26d48729a87ff45e/test/badges.js
Maybe of use: https://github.com/wooorm/is-badge (can also be used in GH-251).
oh awesome, thanks @wooorm that looks perfect 👍