Skip to content

Odd indentation when using checkboxes in markdown #2854

Description

@TobiasDeBruijn

Describe the bug
When using checkboxes in Markdown:

[ ]
[x]

in an unordered list, indentations in the list are not visible in the result. The following does not produce identation:

- [ ] a
    - [ ] b
    - [ ] c
- [ ] d

However this does, but does not display the numbers:

- [ ] a
    1. [ ] b
    2. [ ] c
- [ ] d

In the unordered list, bullet points are not visible either.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Create a new page in the markdown editor
  2. Create an unordered list with checkboxes
  3. Observe that no bullet points are visible
  4. Add an indentation to the list
  5. Observe that no indentation is visible in the rendered result
  6. Replace the hyphens with numbers in the indented portion of the list
  7. Observe that there is now an indentation, but the numbers aren't rendered

Implementation of checkboxes here: #319

Expected behavior

  1. Indentation is visible
  2. Bulletpoints are visible
  3. Numbers are visible

Screenshots
image

image

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): v0.31.6 (Going to try updating in a bit)
  • PHP Version: 7.4
  • Hosting Method (Nginx/Apache/Docker): Nginx in a Docker container running on Kubernetes

Additional context
N.A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions