Skip to content

Commit c17fb22

Browse files
committed
fixed #38. seems like new GH layout
1 parent c0ebe19 commit c17fb22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gh-md-toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ gh_toc_grab() {
112112
# became: The command <code>foo1</code></h1>
113113
sed -e ':a' -e 'N' -e '$!ba' -e 's/\n<\/h/<\/h/g' |
114114
# find strings that corresponds to template
115-
grep -E -o '<a\s*id="user-content-[^"]*".*</h[1-6]' |
115+
grep -E -o '<a.*id="user-content-[^"]*".*</h[1-6]' |
116116
# remove code tags
117117
sed 's/<code>//' | sed 's/<\/code>//' |
118118
# now all rows are like:

0 commit comments

Comments
 (0)