jpuri / jpuri/html-to-draftjs

Replace "ins" tag with "u" tag for underline

Open
#103 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
163
Forks
104
PR merge metrics
No merged PRs in 30d

Description

https://github.com/jpuri/html-to-draftjs/blob/b91ba0be2cb8b4c5a635335641d499725ce181cc/src/library/processInlineTag.js#L6

"ins" tag corresponds to an insertion whereas "u" tag corresponds to underline. Moreover, "ins" tags are not correctly displayed as underline on many email platforms. Some of them change its colour, some others just don't underline anything. "u" is more appropriate here.

Contributor guide

No contributing guide indexed for this repository

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 at src/library/processInlineTag.js line 6 and inspect how the ins tag is handled. Replace the underline mapping with u, then verify that the generated output uses u and that the existing test suite passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.