Skip to content

Commit c2301fa

Browse files
committed
global code replacement
1 parent c2479a7 commit c2301fa

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
@@ -186,7 +186,7 @@ gh_toc_grab() {
186186
# find strings that corresponds to template
187187
grep -E -o '<a.*id="user-content-[^"]*".*</h[1-6]' |
188188
# remove code tags
189-
sed 's/<code>//' | sed 's/<\/code>//' |
189+
sed 's/<code>//g' | sed 's/<\/code>//g' |
190190
# now all rows are like:
191191
# <a id="user-content-..." href="..."><span ...></span></a> ... </h1
192192
# format result line

0 commit comments

Comments
 (0)