Skip to content

Commit

Permalink
Merge branch 'issue-19'
Browse files Browse the repository at this point in the history
  • Loading branch information
AmasiaNalbandian committed Oct 1, 2021
2 parents d387ecc + 8f376bb commit 02b322f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ function parseMarkdown(markdownText) {
.replace(/\*(.*)\*/gim, "<i>$1</i>")
.replace(/!\[(.*?)\]\((.*?)\)/gim, "<img alt='$1' src='$2' />")
.replace(/\[(.*?)\]\((.*?)\)/gim, "<a href='$2'>$1</a>")
.replace(/\n$/gim, "<br />");
.replace(/\n$/gim, "<br />")
.replace(/`([^`]*)`/gim, "<code>$1</code>");

return htmlText.trim();
}
Expand Down

0 comments on commit 02b322f

Please sign in to comment.