Skip to content

Commit

Permalink
Use a instead of span for overrides that work with text-decoration:
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Nov 6, 2022
1 parent 087837d commit 1e22cbe
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 53 deletions.
6 changes: 3 additions & 3 deletions src/ansi_to_html.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,15 +311,15 @@ function pushTag(stack, tag, style) {
* @returns {string}
*/
function pushStyle(stack, style) {
return pushTag(stack, 'span', style);
return pushTag(stack, 'a', style);
}

function pushForegroundColor(stack, color) {
return pushTag(stack, 'span', 'color:' + color);
return pushTag(stack, 'a', 'color:' + color);
}

function pushBackgroundColor(stack, color) {
return pushTag(stack, 'span', 'background-color:' + color);
return pushTag(stack, 'a', 'background-color:' + color);
}

/**
Expand Down

0 comments on commit 1e22cbe

Please sign in to comment.