Commit e20b547d authored by Dries's avatar Dries

- Patch #1280522 by dcmouyard: _filter_autop() (line break converter) does not...

- Patch #1280522 by dcmouyard: _filter_autop() (line break converter) does not recognize html5 block level elements.
parent 20386359
...@@ -1591,7 +1591,7 @@ function _filter_htmlcorrector($text) { ...@@ -1591,7 +1591,7 @@ function _filter_htmlcorrector($text) {
*/ */
function _filter_autop($text) { function _filter_autop($text) {
// All block level tags // All block level tags
$block = '(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|p|h[1-6]|hr)'; $block = '(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|p|h[1-6]|hr|article|aside|details|figcaption|figure|footer|header|hgroup|menu|nav|section|summary)';
// Split at opening and closing PRE, SCRIPT, STYLE, OBJECT, IFRAME tags // Split at opening and closing PRE, SCRIPT, STYLE, OBJECT, IFRAME tags
// and comments. We don't apply any processing to the contents of these tags // and comments. We don't apply any processing to the contents of these tags
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment