-
Notifications
You must be signed in to change notification settings - Fork 331
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
RevealJS: Unexpected behavior from blockquoted unordered lists #7715
Comments
Yes this is Pandoc's bahevior which adds a > quarto pandoc --to revealjs
> * Foo
> * Bar
^Z
<section class="slide level6">
<ul>
<li class="fragment">Foo</li>
<li class="fragment">Bar</li>
</ul>
</section> I believe this is expected behavior by Pandoc's documentation at https://pandoc.org/MANUAL.html#incremental-lists Extract from Doc
Unfortunately, it seems this was the old syntax used by Pandoc from incremental before So you need the trick to wrap in nonincremental, or add content in the blockquote. Note sure Quarto should change this default (even if I am not sure we want it). @cscheid what do you think ? Would it worth patching so that
Something patched with this Lua BlockQuote = function(b)
if #b.content and b.content[1].t == "BulletList" then
b.content = pandoc.Div(b.content)
return b
end
end Revealjs post processing is also possible - we do already some and removing fragment class in there could be possible. I am inclined to make this behavior not work for Quarto, but we would be touching a Pandoc ones. Interested by your thoughts. |
☝️ This is new to me! So much easier than making a project file. Thanks 😁
I like this idea. As an alternative, we could add a Updating the docs is something we could do now (let me know and I'll open a PR!), and if the behavior is disabled in Quarto 1.5 we could remove the callout. What do you think? |
I think this is the correct way to do it. Every decision we make to behave differently from Pandoc is a decision to maintain and explain the difference, and however annoying this old feature is, it will be even more annoying for people who know about it if we choose to disable it. |
Bug description
In RevealJS format, blockquoting an unordered list (and nothing else; putting other things in the blockquote may prevent this from reproducing) causes the unordered list to be rendered as an incremental list without blockquote styling.
I think this is an issue with Pandoc possibly, but I'm not sure. I felt having an issue on this repo would be helpful for other Quarto users searching for info about this behavior. I feel somewhat surprised that I've had difficulty finding previous reports of this behavior. It doesn't seem that uncommon to want to blockquote a list. I apologize if I've missed something obvious before submitting this report!
Steps to reproduce
See repro repo: https://github.com/mfisher87/sscce-quarto-revealjs-blockquoted-list-weirdness
Deployed repro: https://mfisher87.github.io/sscce-quarto-revealjs-blockquoted-list-weirdness
Render a blockquoted list as revealjs format (
revealjs: default
):Expected behavior
I expected the list would render normally, but styled like a blockquote.
Actual behavior
List renders without blockquote style, but renders incrementally (starts hidden, shows each list item as you advance the slide).
The list also renders in unexpected ways relative to other elements in the slide, for example, when rendered next to an un-blockquoted list, the two lists render side-by-side instead of one beneath the other.
Reproduced with Quarto versions:
Your environment
OS: Pop!_OS 22
Quarto check output
$ quarto check Quarto 1.4.510 [✓] Checking versions of quarto binary dependencies... Pandoc version 3.1.9: OK Dart Sass version 1.69.5: OK Deno version 1.37.2: OK [✓] Checking versions of quarto dependencies......OK [✓] Checking Quarto installation......OK Version: 1.4.510 Path: /opt/quarto/bin [✓] Checking tools....................OK TinyTeX: v2023.11 Chromium: (not installed) [✓] Checking LaTeX....................OK Using: TinyTex Path: /home/robatt/.TinyTeX/bin/x86_64-linux Version: 2023 [✓] Checking basic markdown render....OK [✓] Checking Python 3 installation....OK Version: 3.10.9 (Conda) Path: /home/robatt/.local/share/miniconda3/bin/python Jupyter: (None) Jupyter is not available in this Python installation. Install with conda install jupyter [✓] Checking R installation...........(None) Unable to locate an installed version of R. Install R from https://cloud.r-project.org/
The text was updated successfully, but these errors were encountered: