- π³πΏNew Zealand danielveza Brisbane, AU
Closing as a duplicate of #2610130: AutoP Should Be Extensible For Custom Web Elements β . Same author and same issue.
Currently we hard code block level elements into _filter_autop:
$block = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|option|form|map|area|blockquote|address|math|input|p|h[1-6]|fieldset|legend|hr|article|aside|details|figcaption|figure|footer|header|hgroup|menu|nav|section|summary)';
If a site is using a custom DTD, this could cause custom block-level elements to get wrapped in paragraph tags. Perhaps we should look at storing the block level elements in configuration, so that sites or filter plugins could add additional block level elements?
Doing this would not break any backwards capabilities, as we're simple just changing the way $block is defined.
Closed: duplicate
9.5
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Closing as a duplicate of #2610130: AutoP Should Be Extensible For Custom Web Elements β . Same author and same issue.