Skip to content

Gitenberg: customize markdown-it for blocks #8

@bangank36

Description

@bangank36

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 src attribute
  • First attempt with overridden renderer is not working as the generated HTML image is wrapped inside a p tag, check the below comment

Reference

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions