mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Add embed-responsive wrapper and classes to media links when using Bootstrap extension #364
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RudeySH on GitHub (May 12, 2020).
Bootstrap provides classes for embeds: https://getbootstrap.com/docs/4.4/utilities/embed/
The Bootstrap extension currently adds
img-fluidto media links, because media links are treated as images. Instead, it should addembed-responsive-item. The iframe needs to be surrounded with a div with the following classes:embed-responsive embed-responsive-16by9(the aspect ratio could be configurable).