Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $ docker pull plass/mdtopdf

2. Generate PDF file.
```bash
$ docker run -it --rm -v `pwd`:/workdir plass/mdtopdf mdtopdf INPUT.md
$ docker run -it --rm -v "`pwd`":/workdir plass/mdtopdf mdtopdf INPUT.md
```

**Windows (PowerShell)** : Replace `` `pwd` `` to `${pwd}`
Expand All @@ -34,16 +34,16 @@ $ docker run -it --rm -v `pwd`:/workdir plass/mdtopdf mdtopdf INPUT.md
### Generate PDF file on save

```bash
$ docker run -it --rm -v `pwd`:/workdir plass/mdtopdf w-mdtopdf INPUT.md
$ docker run -it --rm -v "`pwd`":/workdir plass/mdtopdf w-mdtopdf INPUT.md
```

### Set alias

You can decrease typing using `alias` command as below,

```bash
$ echo "alias mdtopdf='docker run -it --rm -v `pwd`:/workdir plass/mdtopdf mdtopdf'" >> ~/.bash_profile
$ echo "alias w-mdtopdf='docker run -it --rm -v `pwd`:/workdir plass/mdtopdf w-mdtopdf'" >> ~/.bash_profile
$ echo "alias mdtopdf='docker run -it --rm -v "`pwd`":/workdir plass/mdtopdf mdtopdf'" >> ~/.bash_profile
$ echo "alias w-mdtopdf='docker run -it --rm -v "`pwd`":/workdir plass/mdtopdf w-mdtopdf'" >> ~/.bash_profile
$ source ~/.bash_profile

$ mdtopdf INPUT.md
Expand All @@ -66,21 +66,21 @@ If you're using Docker for Windows, setting alias is a bit tricky. Use followin
### Generate tex file from markdown

```bash
$ docker run -it --rm -v `pwd`:/workdir plass/mdtopdf mdtotex INPUT.md
$ docker run -it --rm -v "`pwd`":/workdir plass/mdtopdf mdtotex INPUT.md
```

### Generate html file from markdown

```bash
$ docker run -it --rm -v `pwd`:/workdir plass/mdtopdf mdtohtml INPUT.md
$ docker run -it --rm -v "`pwd`":/workdir plass/mdtopdf mdtohtml INPUT.md
```

[example converted HTML](examples/example.html)

### Generate docx file from markdown

```bash
$ docker run -it --rm -v `pwd`:/workdir plass/mdtopdf mdtodocx INPUT.md
$ docker run -it --rm -v "`pwd`":/workdir plass/mdtopdf mdtodocx INPUT.md
```

[example converted docx](examples/example.docx)