algolia / algolia/diffable-html

Support to ignore a block

Open
#13 4 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
JavaScript
Stars
38
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Considering the following example:

```html


My paragraph with a link (

see here

).


```

The extra whitespace between the closing of the anchor and the parenthesis are an issue for us, it's creating an extra space, when viewed as HTML. Could there be an option, maybe a comment, that would disable the formatting for a specific block?

Out of scope? I let you be the judge.

I can also do a PR if you're interested.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing how the HTML formatter processes whitespace around nested elements and whether it already recognizes comments or configuration options. Define how an ignore marker or option should scope a block, then verify that the example preserves the intended spacing without changing formatting elsewhere.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
tooling, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.