Skip to content

Commit

Permalink
update scripts/knk2html
Browse files Browse the repository at this point in the history
  • Loading branch information
obfusk committed Aug 29, 2024
1 parent c078295 commit ff961d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/knk2html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ from="$1" to="$2"
vim -RE +'let g:html_dynamic_folds=1' +TOhtml +"w! $to" +'qa!' "$from"

sed -i -r \
-e $'/id=\'fold2\'.*Aliases for Primitives/! s!class=\'closed-fold\'!class=\'open-fold\'!' \
-e 's!.*DOCTYPE.*!<\!DOCTYPE html>!' \
-e $'/id=\'fold1\'.*Aliases for Primitives/! s!class=\'closed-fold\'!class=\'open-fold\'!' \
-e '/^body/ s!\}!text-align: center; }!' \
-e '/^pre/ s!\}!text-align: left; display: inline-block; width: max-content; }!' \
-e 's!.*<title>.*!<title>'"$(basename "$from")"'</title>!' \
Expand Down

0 comments on commit ff961d6

Please sign in to comment.