Closed cdarve245 closed 6 months ago
I have 4 entries with fixture.md and get the CSS repeated 4 times in the output HTML.
Not sure if I get what you mean. Styles are added into a <div class="markdown-styles />
wrapper for every zero-md
instance, but this is expected behaviour - same thing happens without no-shadow
.
With no-shadow
, styles are not encapsulated so applies on the entire doc, but even with multiple declarations in HTML, the browser is smart enough to download any external stylesheets only once, and apply it only once.
Hi,
I have found another small issue that I don't know how to fix. I am using Mathjax with
zero-md
. I included at the top:I have multiple entries of the form:
For some reason, the generated HTML file reads the same CSS file multiple times, exactly once per
zero-md src
entry above.Here is a minimum example based on the
zero-md
doc:I have 4 entries with
fixture.md
and get the CSS repeated 4 times in the output HTML. Note that the CSS gets applied only once (e.g., correctly) when you remove theno-shadow
option. Butno-shadow
is required to have Mathjax working correctly withzero-md
.The HTML page displays correctly, but it's annoying to have the CSS applied multiple times. It ends up increasing the loading time quite a bit.