Skip to content

Commit

Permalink
Added md-to-html
Browse files Browse the repository at this point in the history
  • Loading branch information
reinout committed Jan 17, 2025
1 parent 7748d75 commit c68e80e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
16 changes: 16 additions & 0 deletions shell/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,22 @@ Source code::
pandoc -f gfm -t docx $1 -o ${1%.md}.docx


md-to-html
------------------------------------------------------------------------

Use pandoc to convert a .md file to docx.

I originally used the `markdown` format, but I've switched to `gfm`, github
flavoured markdown, because that auto-renders URLS.

Source code::

#!/bin/bash
set -e
set -u
pandoc -f gfm -t html5 $1 -o ${1%.md}.html


md-to-pdf
------------------------------------------------------------------------

Expand Down
8 changes: 8 additions & 0 deletions shell/md-to-html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
# Use pandoc to convert a .md file to docx.
#
# I originally used the `markdown` format, but I've switched to `gfm`, github
# flavoured markdown, because that auto-renders URLS.
set -e
set -u
pandoc -f gfm -t html5 $1 -o ${1%.md}.html

0 comments on commit c68e80e

Please sign in to comment.