You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Grab include-ok.html add to 11ty site, and include it in a layout
Build site; see it renders similarly to:
Replace include-ok.html with include-broken.html, build site and refresh
See something broken like:
You can then see the problem is fixed by trying include-ok-wrapped.html, which wraps the svg in a div tag. It doesn't even need to be wrapped; the first tag can be an empty div like <div></div> followed by <svg ..>, and it will render properly.
Screenshots
See above
Environment:
OS and Version: macOS 10.15.7
Eleventy Version: v0.11.0
Additional context
may be the fault of something else in our configuration (it's in the gist).
Does not break with just liquid
The problem may actually be with markdown-it, which Eleventy uses under the hood. I'd open an issue there. Be sure to mention that the svg include works when wrapped in a div.
In the meantime, you could always try using a different markdown parser.
Describe the bug
When:
.html
file, andsvg
, and...the SVG fails to render in the browser.
To Reproduce
Steps to reproduce the behavior:
include-ok.html
add to 11ty site, and include it in a layoutinclude-ok.html
withinclude-broken.html
, build site and refreshYou can then see the problem is fixed by trying
include-ok-wrapped.html
, which wraps thesvg
in adiv
tag. It doesn't even need to be wrapped; the first tag can be an empty div like<div></div>
followed by<svg ..>
, and it will render properly.Screenshots
See above
Environment:
Additional context
may be the fault of something else in our configuration (it's in the gist).
Ref: mochajs/mocha#4440
The text was updated successfully, but these errors were encountered: