Skip to content

Commit

Permalink
fixed #38. seems like new GH layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalinin committed Oct 4, 2017
1 parent c0ebe19 commit c17fb22
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 @@ -112,7 +112,7 @@ gh_toc_grab() {
# became: The command <code>foo1</code></h1>
sed -e ':a' -e 'N' -e '$!ba' -e 's/\n<\/h/<\/h/g' |
# find strings that corresponds to template
grep -E -o '<a\s*id="user-content-[^"]*".*</h[1-6]' |
grep -E -o '<a.*id="user-content-[^"]*".*</h[1-6]' |
# remove code tags
sed 's/<code>//' | sed 's/<\/code>//' |
# now all rows are like:
Expand Down

0 comments on commit c17fb22

Please sign in to comment.