-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
- So far the Gitenberg: Add sample block #7 introduced the new block (Shields Badge), which is image underline, so the block will be parsed as image block on load
- We need to tweak the markdown-it library to parse the images into Shields Badge based on its
srcattribute - First attempt with overridden renderer is not working as the generated HTML image is wrapped inside a
ptag, check the below comment
Reference
- https://publishing-project.rivendellweb.net/customizing-markdown-it/?fbclid=IwAR0cb6_QtZkOUhX7sAjEEKjEvBLbrwGTT1rurU6zFmFOwhZ-etxi66w1Ib0
- Different approach to detect block image and inline https://github.com/rotorz/markdown-it-block-image/blob/master/lib/index.js
- Center align text? Use
palign attribute https://github.com/badges/shields/blob/master/README.md?plain=1
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Projects
Status
Triage