Skip to content

Commit

Permalink
global code replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalinin committed Dec 29, 2018
1 parent c2479a7 commit c2301fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gh-md-toc
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ gh_toc_grab() {
# find strings that corresponds to template
grep -E -o '<a.*id="user-content-[^"]*".*</h[1-6]' |
# remove code tags
sed 's/<code>//' | sed 's/<\/code>//' |
sed 's/<code>//g' | sed 's/<\/code>//g' |
# now all rows are like:
# <a id="user-content-..." href="..."><span ...></span></a> ... </h1
# format result line
Expand Down

0 comments on commit c2301fa

Please sign in to comment.