Markdown to Html Conversion

A simple code to convert markdown to html

Conversion of Markdown(.md) to html markup language

  • get the pandoc
  • Use the following command
    pandoc smaple_readme.md -t html -o sample_readme.html
  • In shell it would be written like
cat=$(pandoc $1.md -t html -o $1.html )
  • It will be run the loop with wildcard like
  for i in ~/locat/.md/file/* ; do $(var) ; done 

Modification

  • check extension of each file with if condition and print the non md file like
if [ $1 -ne *.md ]
then 
    echo "UNEXPECTED Document format $1 "
    continue 
else:
    `further code`
fi
Ukant Jadia
Ukant Jadia
Graduate | ML & Software Engineer

My research interests include applied machine learning, visualization, programming boring stuff.