quarto-dev / quarto-dev/quarto-cli

Asides in lists don't align for HTML format

Open
#12,984 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug layout
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

I have:
  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide
Bug description

I have some {.aside} spans within a list. When rendered to HTML, all the asides are bunched up together in he margin at the top of the list. Instead they should be next to where the aside is input in the text.

Steps to reproduce

Here is a MWE:

---
title: "Test asides in lists"
format:
  html:
    theme: cosmo
---

# Chapter title

Here is a list:

1. This is some text.

   Example 1 [This is aside 1]{.aside}

    i. This is some text.

       Example 2 [This is aside 2]{.aside}

   ii. This is some text.

       Example 3 [This is aside 3]{.aside}

2. This is some text.

   Example 4 [This is aside 4]{.aside}

3. This is some text.

   Example 5 [This is aside 5]{.aside}

Actual behavior

This is the rendered HTML:

Image
Expected behavior

The asides should align horizontally with the "example" text.

Your environment
  • IDE: text editor
  • OS: macOS 15.4.1
Quarto check output
Quarto 1.7.32
[✓] Checking environment information...
      Quarto cache location: /Users/asheikh/Library/Caches/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.6.3: OK
      Dart Sass version 1.85.1: OK
      Deno version 1.46.3: OK
      Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.7.32
      Path: /Applications/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /Library/TeX/texbin
      Version: 2024

[✓] Checking Chrome Headless....................OK
      Using: Chrome found on system
      Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
      Source: MacOS known location

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.13.1
      Path: /usr/local/opt/python@3.13/bin/python3.13
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.4.2
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library
      knitr: 1.49
      rmarkdown: 2.29

[✓] Checking Knitr engine render......OK

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by rendering the provided minimal .qmd example with Quarto 1.7.32 and inspect the generated HTML and styles for the aside spans inside nested lists. Compare the output with the expected alignment described in the issue. Done means each aside appears horizontally beside the corresponding example text rather than being grouped at the top of the list.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.