Skip to content

Commit 2b3d2d6

Browse files
authored
Allow any attributes from markdown-attrs (#11705)
Such as `width` when including an image, such as: ``` ![Rename a Flutter flavor](/assets/images/docs/flavors/flavors-ios-app-names.png){:width="50%"} ```
1 parent 7e2d11b commit 2b3d2d6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/_11ty/plugins/markdown.ts

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export const markdown = (() => {
1313
.use(markdownItAttrs, {
1414
leftDelimiter: '{:',
1515
rightDelimiter: '}',
16-
allowedAttributes: ['id', 'class', /^data-.*$/],
1716
})
1817
.use(markdownItAnchor, {
1918
slugify: (s) => slugify(s),

0 commit comments

Comments
 (0)