denoland / deno-gfm

Server-side GitHub Flavored Markdown rendering for Deno
https://jsr.io/@deno/gfm
MIT License
226 stars 37 forks source link

feat: custom tags and attributes #95

Closed deer closed 9 months ago

deer commented 9 months ago

closes #11

This was partially done in #25, where they added details, summary, and del tags. Unfortunately they forgot the open attribute for details, which I've fixed here. I've additionally added a test covering these tags, mainly to ensure there is no regression when I switch to the unified ecosystem.

As for the actual issue, I've sadly never heard of most of the tags requested. Additionally, this seems like a game of whac-a-mole. If some new tag comes out or is supported by github, then we have to react. So I've instead moved this forward with a twist (based on #85): users can now supply their own allowedTags and allowedAttributes.

If there is enough desire in the community, then specific tags can of course be added to our default list.

@hashrock, I think this is the last one for today 😅