Fix shortcode in markdown headers
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 13 Jun 2016 17:10:53 +0000 (19:10 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 15 Jun 2016 07:12:07 +0000 (09:12 +0200)
commit34f40044d7144dddcd613d60df8e24985158dd8c
treeabf9f60821adbcbea8a519112c3ea60155c6bdaa
parent6ba074562c3ca16af352755dc90e78139782f569
Fix shortcode in markdown headers

This issue was introduced as a fix to shortcode not working in RST.

One could argue that Blackfriday and friends should handle `#` in titles, but that will be a discussion
for another day.

The new placeholder pattern should be RST safe and work with titles.

And now with a test so this doesn't break again.

Fixes #2192
Fixes #2209
Closes #2210
helpers/content_renderer.go
hugolib/shortcode.go
hugolib/shortcode_test.go