typst / typst/typst

Paragraph should be able to contain tight lists and block-level equations

Open
#3,206 34 comments 48 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

change request model text
Dominant language
Rust
Stars
56.1k
Forks
1.7k
Avg merge
3d 10h
Merged PRs (30d)
22

Description

Currently, a tight list attaches to the preceding paragraph when there is no whitespace, and a new paragraph is always created after the list.

image

In this case, this behavior is not desirable, because everything here is really part of the same paragraph.

For comparison, the behavior in LaTeX is that the next line is also part of the paragraph (new paragraphs are indented by default)
image

unless whitespace is added
image

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 reproducing the tight-list and block-equation examples from the issue and tracing how paragraph boundaries are determined. Done means tight lists and block-level equations remain part of the preceding paragraph when there is no whitespace, while added whitespace still creates a new paragraph.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.