tagHandler - Handle strong and em tags + test

This commit is contained in:
2019-12-21 13:44:10 +05:30
parent ef7af9797c
commit 19add2a956
2 changed files with 19 additions and 0 deletions
+7
View File
@@ -17,6 +17,13 @@ export default function handleTag(
newParentASTNode = childASTNode = heading(1);
break;
case 'strong':
newParentASTNode = childASTNode = strong();
break;
case 'em':
newParentASTNode = childASTNode = emphasis();
break;
default:
newParentASTNode = parentASTNode;
break;