I´m working on a script that converts a file with markdown into an html file, the md format looks like
# This is my heading This is my text - This is a list item
And i would like to have a function (now i have something called "convert") that i could use like this
convert "char" "tag" "file"
convert "#" "h1" "/temp/file1.txt" convert "-" "ul" "/temp/file1.txt" convert "" "p" "/temp/file1.txt"
And get an output of
<h1>This is my heading</h1> <p>This is my text</p> <ul>This is a list item</ul>
I would love to use something pretty light weight, not sure if sed is the right choice.
Thank you in advance