tagHandler - mark section for strong, em

This commit is contained in:
2019-12-21 13:50:03 +05:30
parent 1574e7e1a8
commit 2103507d8a
+2
View File
@@ -31,12 +31,14 @@ export default function handleTag(
break; break;
// END - Handle all headings // END - Handle all headings
// START - Handle strong and em
case 'strong': case 'strong':
newParentASTNode = childASTNode = strong(); newParentASTNode = childASTNode = strong();
break; break;
case 'em': case 'em':
newParentASTNode = childASTNode = emphasis(); newParentASTNode = childASTNode = emphasis();
break; break;
// END - Handle strong and em
default: default:
newParentASTNode = parentASTNode; newParentASTNode = parentASTNode;