|
@@ -77,7 +77,8 @@ class ConvertHtml extends ConvertBase {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
- const newPara = new Set(['tr', '/table', 'hr', 'br', 'br/', 'li', 'dt', 'dd', 'p', 'title', '/title', 'h1', 'h2', 'h3', '/h1', '/h2', '/h3']);
|
|
|
|
|
|
+ const newPara = new Set(['tr', '/table', 'hr', 'br', 'br/', 'li', 'dt', 'dd', 'p', 'title', '/title', 'ul', '/ul', 'h1', 'h2', 'h3', 'h4', 'h5', '/h1', '/h2', '/h3', '/h4', '/h5']);
|
|
|
|
+ const newPara2 = new Set(['h1', 'h2', 'h3', 'h4', 'h5']);
|
|
|
|
|
|
const onTextNode = (text, cutCounter, cutTag) => {// eslint-disable-line no-unused-vars
|
|
const onTextNode = (text, cutCounter, cutTag) => {// eslint-disable-line no-unused-vars
|
|
text = this.escapeEntities(text);
|
|
text = this.escapeEntities(text);
|
|
@@ -108,6 +109,8 @@ class ConvertHtml extends ConvertBase {
|
|
if (!cutCounter) {
|
|
if (!cutCounter) {
|
|
if (newPara.has(tag))
|
|
if (newPara.has(tag))
|
|
newParagraph();
|
|
newParagraph();
|
|
|
|
+ if (newPara2.has(tag))
|
|
|
|
+ newParagraph();
|
|
|
|
|
|
switch (tag) {
|
|
switch (tag) {
|
|
case 'i':
|
|
case 'i':
|
|
@@ -141,6 +144,8 @@ class ConvertHtml extends ConvertBase {
|
|
if (!cutCounter) {
|
|
if (!cutCounter) {
|
|
if (newPara.has('/' + tag))
|
|
if (newPara.has('/' + tag))
|
|
newParagraph();
|
|
newParagraph();
|
|
|
|
+ if (newPara2.has('/' + tag))
|
|
|
|
+ newParagraph();
|
|
|
|
|
|
switch (tag) {
|
|
switch (tag) {
|
|
case 'i':
|
|
case 'i':
|