Html tags at the end of the file break css theme loading and --html false
doesn't behave the same as unspecified html setting
#511
Labels
bug
Something isn't working
Version of Marp Tool
@marp-team/marp-cli v2.4.0 (w/ @marp-team/marp-core v3.5.0)
Operating System
macOS
Environment
How to reproduce
test.md
(here no trailing whitespace!)
test.css
Compare the output of these three commands:
Expected behavior
The theme should be loaded everywhere and the output of the first and third command should be the same. Additionally, it should look the same with and without a new line at the end in
test.md
Expected:
marp --theme test.css -o test.pdf test.md --html true
Expected:
marp --theme test.css -o test.pdf test.md --html false
Expected:
Actual behavior
The first and third commands differ in output (see screenshots below) and the theme loading breaks if no newline is present at the end of
test.md
if--html false
isn't set explicitly.Actual:
marp --theme test.css -o test.pdf test.md --html true
Actual:
marp --theme test.css -o test.pdf test.md --html false
Actual:
Additional information
This issue contains two bugs, but the html flag bug cannot be replicated without the other one as an example.
The div bug can also be replicated using other block elements such as
<main></main>
,<header></header>
etc., but not with inline elements such as<span></span>
. It does however break when using the "short hand" notation<span />
.The text was updated successfully, but these errors were encountered: