Skip to content

Commit

Permalink
Resolve the issue 12
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavik001 committed Sep 29, 2023
1 parent 525e313 commit fb0a837
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ function processMdFile(inputFilePath, outputDir) {
.replace(/\*(.*?)\*/g, "<i>$1</i>") // italic
.replace(/\*\*(.*?)\*\*/g, "<b>$1</b>") // bold
.replace(/`(.*?)`/g, "<code>$1</code>") // inline code
.replace(/```([\s\S]*?)```/g, "<pre><code>$1</code></pre>"); // fenced code block
.replace(/```([\s\S]*?)```/g, "<pre><code>$1</code></pre>") // fenced code block
.replace(/^---$/gm, "<hr>"); // horizontal rule

const fileName = path.basename(inputFilePath, ".md");
const outputFile = path.join(outputDir, `${fileName}.html`);
Expand Down

0 comments on commit fb0a837

Please sign in to comment.