Skip to content

Commit 1c7e30f

Browse files
authored
fix(ToHtmlStringVisitor): Replace emph with em tag (#107)
Signed-off-by: Matt Roberts <[email protected]>
1 parent b798b96 commit 1c7e30f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/markdown-html/src/ToHtmlStringVisitor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class ToHtmlStringVisitor {
111111
parameters.result += thing.text;
112112
break;
113113
case 'Emph':
114-
parameters.result += `<emph>${ToHtmlStringVisitor.visitChildren(this, thing)}</emph>`;
114+
parameters.result += `<em>${ToHtmlStringVisitor.visitChildren(this, thing)}</em>`;
115115
break;
116116
case 'Strong':
117117
parameters.result += `<strong>${ToHtmlStringVisitor.visitChildren(this, thing)}</strong>`;

packages/markdown-html/src/__snapshots__/HtmlTransformer.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ exports[`html converts emph.md to html 2`] = `
587587
"<html>
588588
<body>
589589
<div class=\\"document\\">
590-
<p>This is <emph>some</emph> text.</p>
590+
<p>This is <em>some</em> text.</p>
591591
</div>
592592
</body>
593593
</html>"
@@ -633,7 +633,7 @@ exports[`html converts emph-strong.md to html 2`] = `
633633
"<html>
634634
<body>
635635
<div class=\\"document\\">
636-
<p>This is <emph><strong>some</strong></emph> text.</p>
636+
<p>This is <em><strong>some</strong></em> text.</p>
637637
</div>
638638
</body>
639639
</html>"

0 commit comments

Comments
 (0)