Automattic / Automattic/harper

feat: Proper Handling of Pandoc Multiline/Grid Tables

Open
#3,524 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
106

Description

**What problem does this solve?**
Currently, when using multiline or grid tables in Pandoc or Quarto Markdown, various Harper linting errors may show up incorrectly, such as `UnclosedQuotes`, or `LongSentences`.

**Proposed Solution**
Harper should know to treat different table cells as separate pieces of text.

**Examples**
Incorrectly gives `LongSentences` lint:

```qmd
+----------------------------+----------------------+
| This is the first cell of | This is the second |
| the table; the sentence is | cell of the table; |
| not too long, but is when | an independent |
| Harper incorrectly treats | sentence that should |
| the second cell as part of | not be considered |
| it. | part of cell 1. |
+----------------------------+----------------------+
```

**Component**
- [x] Core engine
- [ ] Plugin/Extension
- [ ] Other: _____

**Additional Context**
Documentation about different types of Pandoc/Quarto tables can be found here:

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Start by locating the core engine's handling of Pandoc or Quarto Markdown tables and compare its treatment of multiline and grid-table cells with the examples. Done means separate cells are treated as independent text so valid content does not trigger false UnclosedQuotes or LongSentences lints.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, rust
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.