Skip to content

Commit

Permalink
Add attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
davepagurek committed Jan 14, 2025
1 parent e2dcc33 commit 83e7c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function descriptionString(node, parent) {
if (classes.length > 0) {
attrs=` class="${classes.join(' ')}"`;
}
return `<code${attrs}>${node.value}</code>`;
return `<pre><code${attrs}>${node.value}</code></pre>`;
} else if (node.type === 'inlineCode') {
return '<code>' + node.value + '</code>';
} else if (node.type === 'list') {
Expand Down

0 comments on commit 83e7c45

Please sign in to comment.