BransonGitomeh / pagedown

Automatically exported from code.google.com/p/pagedown
Other
0 stars 0 forks source link

h4-h6 do not work #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Attempt to enter an h4, h5, or h6 like so:

#### Test
##### Test
###### Test

What is the expected output? What do you see instead?

Expect to convert to <h4>Test</h4> for example. Converts to unmarked-up text 
instead.

What version of the product are you using? On what operating system?

Using trunk code in Chrome 19, Mac OS X Snow Leopard

Please provide any additional information below.

Original issue reported on code.google.com by tim.hueg...@gmail.com on 20 Feb 2012 at 8:37

GoogleCodeExporter commented 8 years ago
H4-H6 work fine.

I suppose you're using the sanitizer plugin, which only whitelists H1-H3, so 
H4-H6 will be killed. They're created just fine by the Markdown converter, 
though.

The tag whitelist is exactly the one we use on Stack Exchange. If you want to 
allow more or different tags, you'll have to change the whitelist (search for 
"basic_tag_whitelist").

Original comment by b...@stackoverflow.com on 20 Feb 2012 at 9:21

GoogleCodeExporter commented 8 years ago
Well this was very non-obvious

Original comment by ch...@marisic.com on 30 Sep 2014 at 2:50