Wikitext headings to markdown
Convert the wikitext headings to markdown.
Start file
= First, a heading = == Section == === Deeper === As you can see, the headings have equals signs like = in all kinds of funny places. == Dets == Why not = this here. ``` var = 4 def funcy(min=1, max=2): return (min + max) / 2 ``` === Also === Please note. Thanks.
End file
# First, a heading ## Section ### Deeper As you can see, the headings have equals signs like = in all kinds of funny places. ## Dets Why not = this here. ``` var = 4 def funcy(min=1, max=2): return (min + max) / 2 ``` ### Also Please note. Thanks.
View Diff
1,3c1,3 < = First, a heading = < == Section == < === Deeper === --- > # First, a heading > ## Section > ### Deeper 8c8 < == Dets == --- > ## Dets 18c18 < === Also === --- > ### Also
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock 207 remaining solutions by signing in and submitting your own entry
#208 Antse / @antse_fr - Score: 182 - 11/08/21 @ 18:39
:%s<0xc2><0xa8><BS>/^=<BS><BS>=<Left>^<Right>/<Left><Left>.<BS>*<BS>1<BS><Right> <Right>#/g<CR>:<Up><Left><Left><Left><Left><Left>=<Right><Right><Right><Right><Left>#<CR>uuu:%s/<0xc2><0xa8><BS>^# <Left><BS>= $ =<Left><Left><Left><Right><Right><Right><BS><BS><BS><BS> /<Left>:<BS><Right># /g<CR>:<Up><Left><Left><Left><Left><Left><Left><Left>=<Right><Right><Right>#<CR>:<Up><Left><Left><Left><Left><Left><Left><Left><Left>=<Right><Right><Right><Right>#<CR>:%s/$=<BS><Left>= <BS><Left> <Right><Right>//g<Left><Left><Left><Left><Left><Left><Left><Left><BS>A<BS>1<CR>:<Up><Left><Left><Left><Left><Left><Left><Left><Left><BS>%<Right><Right><Right><Right>=<CR>:<Up><Left><Left><Left><Left>=<CR>:w<CR>:q<CR>
0 comments