Skip to content

Commit

Permalink
Allow any attributes from markdown-attrs (#11705)
Browse files Browse the repository at this point in the history
Such as `width` when including an image, such as:

```
![Rename a Flutter flavor](/assets/images/docs/flavors/flavors-ios-app-names.png){:width="50%"}
```
  • Loading branch information
parlough authored Feb 11, 2025
1 parent 7e2d11b commit 2b3d2d6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/_11ty/plugins/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const markdown = (() => {
.use(markdownItAttrs, {
leftDelimiter: '{:',
rightDelimiter: '}',
allowedAttributes: ['id', 'class', /^data-.*$/],
})
.use(markdownItAnchor, {
slugify: (s) => slugify(s),
Expand Down

0 comments on commit 2b3d2d6

Please sign in to comment.