Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Options to add <ins> or <del> tag with custom class in result?

Open
#170 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start at the htmlDiffer.diffHtml entry point and trace how the comparison result is rendered. Define how options should produce and tags with a custom class, then verify that the result matches the example output for changed HTML.

Written by the indexing model from the issue text.

Description

Anyway to print the result with <ins> and <del> tag?

var first = "<p>This is a paragraph</p>"
var second= "<p>This is a changed paragraph</p>"

var diff = htmlDiffer.diffHtml(first , second);

// Should result in
<p>This is a <ins>changed</ins> paragraph</p>
Dominant language
JavaScript
Stars
217
Forks
45
PR merge metrics
No merged PRs in 30d

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.

More from bem/html-differ

All issues in bem/html-differ

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.