Skip to content

Commit

Permalink
Fix the sed script for manipulating pre-TOC sections
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfenner authored Oct 4, 2022
1 parent 116e93d commit f0cba4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ runs:
# While we're doing this, transform the case to all-caps.
- run: >
sed -i
'/0/,/\\tableofcontents/s/^# \(.*\)/\\addsec\{\U\1\}/g'
'0,/\\tableofcontents/s/^# \(.*\)/\\addsec\{\U\1\}/g'
${{ inputs.input-md }}
shell: sh
# Grab the date from the front matter and generate the full date and year.
Expand Down

0 comments on commit f0cba4f

Please sign in to comment.