/mawkdown

toy markdown parser in awk

Primary LanguageAwkMIT LicenseMIT

Welcome to Mawkdown

Mawkdown is a toy markdown parser written in AWK

It requires GAWK, because it uses the match function.

Try Mawkdown

Generate html from the README:

awk -f mawkdown.awk README.md

Open README in firefox:

awk -f mawkdown.awk README.md | ./pipefox.sh

Or something simpler:

echo -e "# title\n## subtitle" | awk -f mawkdown.awk

It supports all of these things

Now look at this fine rust code:

let x = 5;
printf!("{} + {} = {}", x, x, x + x);

here's a link to my other project called digester.

this is not the first time I'm having fun with AWK: awk-jvm.

and here's some quoted text

Sample h3

what does the above code do?

  • store the value 5 in the variable x
  • call the printf macro

italic with underscores

bold with asterisks

bold with underscores

italic with asterisks


What does it look like?

Mawkdown Screensshot (note that pipefox does not work with relative images)

Limitations

basically any line can only contain one thing

  • formatting within a list does not work
  • langauge-specific formatting