Fixed added padding around hr tags in details blocks

Due to manual handling & wrapping of non-block content in details block
not taking hr elements into account.
For #3963
This commit is contained in:
Dan Brown 2023-05-08 12:01:52 +01:00
parent 3bcbf6b9c5
commit b5cc0a8e38
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
2 changed files with 2 additions and 1 deletions

View File

@ -268,7 +268,7 @@ export function build(options) {
'-doc-root[doc-root|#text]',
'-li[details]',
'+code-block[pre]',
'+doc-root[p|h1|h2|h3|h4|h5|h6|blockquote|code-block|div]',
'+doc-root[p|h1|h2|h3|h4|h5|h6|blockquote|code-block|div|hr]',
].join(','),
plugins: gatherPlugins(options),
contextmenu: false,

View File

@ -14,4 +14,5 @@ export const blockElementTypes = [
'ul',
'ol',
'table',
'hr',
];