-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--slide-level in reveal.js presentation has a weird behaviour #5168
Comments
Have you seen http://pandoc.org/MANUAL.html#structuring-the-slide-show ? Especially:
|
Yes. My issue isn't related to missing content. Under certain conditions the Slide level seems to be ignored (Example 1, slide level 3) or if no matching header is found the content should be at least truncated and not overlay the section |
It would be helpful if you could look at the HTML structure pandoc produces with these options and say how you think it should be revised. reveal.js is a bit different from the other formats because of the 2D structure. |
I have looked at it again and compared the HTML structure. I've copied only relevant HTML code without title slide and formatted it to understand it easier. Example 1Slide level 2
Slide level 3
Pandoc seem to add a higher depth to sections than supported which causes issues with side generation and content placement. Slide level 3 revisedAccording to the documentation of
Example 2Slide level 1
Slide level 2
Because the given slide level doesn't match any header, the truncation of worng placed content seem to be missing. Slide level 2 revisedAccording to the documentation of
|
In Example 1 there may be a real issue with |
Hi,
was being rendered as a set of vertical slides with a common header (i.e. section header). This behaviour was lost since 2.6, I guess as a side effect of this fix. |
Text.Pandoc.Shared: + Remove `Element` type [API change] + Remove `makeHierarchicalize` [API change] + Add `makeSections` [API change] + Export `deLink` [API change] Now that we have Divs, we can use them to represent the structure of sections, and we don't need a special Element type. `makeSections` reorganizes a block list, adding Divs with class `section` around sections, and adding numbering if needed. This change also fixes some longstanding issues recognizing section structure when the document contains Divs. Closes #3057, see also #997. All writers have been changed to use `makeSections`. Note that in the process we have reverted the change c1d058a made in response to #5168, which I'm not completely sure was a good idea. Lua modules have also been adjusted accordingly. Existing lua filters that use `hierarchicalize` will need to be rewritten to use `make_sections`.
Pandoc Version 2.5
In my experience the
slide-level
paramter doesn't alsways work as intended and sometimes has a really weird behaviour.This issue is not about content getting dropped!
Example 1
Example markdown:
Command used to create html:
I only change the slide level in the command.
Slide level 1
Only top-level slides. Works as intended.
Slide level 2
Header 1 gets converted to a section, Header 2 gets converted to a slide. Works as intended
Slide level 3
Same output as with
--slide-level 2
. Does not work as intended.Example 2
Example markdown:
Command used to create html:
I only change the slide level in the command.
Slide level 1
Only top-level slides. Works as intended.
Slide level 2
Because Header 2 is not available it somehow breaks the presentation and the content overlays the section slide:
Does really not work as intended.
Slide level 3
Header 1 gets converted to a section, Header 3 gets converted to a slide. Works as intended
The text was updated successfully, but these errors were encountered: