Markdown is a markup language like HTML. It is quite popular among developers to write blogs, readme files, documentation and blogs. Some of the popular websites that support rich text like Reddit, GitHub, Notion etc allow you to write Markdown. I use Markdown to convert my blog from a Markdown file to HTML web pages.
If you open a markdown file, you’ll see the following syntax.
Markdown text example
Learn more from this Markdown cheatsheet.
A regular expression is a character sequence that helps us to capture patterns in a text. We can use it to validate user input, find and replace texts and yup, you guessed it, build our Markdown parser. 😉
I will explain the patterns we use in our parser as we reach that section.
The Markdown parser I intend to build is a function that takes Markdown text as input and returns HTML.
A regular expression (also known as regex) is a sequence of characters that simplify complex text processing tasks. In this article, we’ll look at four new regex features in ECMAScript that help web developers write less error-prone and more efficient code.
With the rapid development in technology, the old ways to do business have changed completely. A lot more advanced and developed ways are ...