Skip to content

Commit

Permalink
handle emojis. Fixes ekalinin#102
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalinin committed Nov 15, 2020
1 parent a80ce50 commit 20d3cff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gh-md-toc
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ gh_toc_grab() {

# remove code tags
sed 's/<code>//g' | sed 's/<\/code>//g' |

# remove g-emoji
sed 's/<g-emoji[^>]*[^<]*<\/g-emoji> //g' |

# now all rows are like:
# <a id="user-content-..." href="..."><span ...></span></a> ... </h1
Expand Down

0 comments on commit 20d3cff

Please sign in to comment.