Giter VIP home page Giter VIP logo

Comments (7)

phoen1x avatar phoen1x commented on August 15, 2024 1

Here is a little cheat sheet on how to convert .md to .pdf using Docker

git clone https://github.com/wsargent/docker-cheat-sheet
cd docker-cheat-sheet

# start image
docker run --rm -ti -v "$PWD:/cheat" ubuntu bash

# install toolchain
apt-get update && apt-get -y install pandoc texlive-xetex

# generate pdf
cd /cheat 
pandoc --output book.html README.md
pandoc --output book.pdf book.html

# stop image
exit

# open book.pdf in your PDF Viewer

I recently did a similar work for my project which converts .md to book quality .pdf.

from docker-cheat-sheet.

ambatigan avatar ambatigan commented on August 15, 2024

from docker-cheat-sheet.

ShashankaNataraj avatar ShashankaNataraj commented on August 15, 2024

@ambatigan Copy paste the .md file into a word document and print away!

Or, you could use : http://www.markdowntopdf.com/

from docker-cheat-sheet.

ambatigan avatar ambatigan commented on August 15, 2024

How can i get that .md (markdown you meant) file? Btw, i see it as an image....

from docker-cheat-sheet.

ShashankaNataraj avatar ShashankaNataraj commented on August 15, 2024

Here you go
pdf.md.zip

from docker-cheat-sheet.

leitmedium avatar leitmedium commented on August 15, 2024

Depending on your operating system you can easily "print" the page to a pdf file. It's built-in on OS X and most Linux distributions, and for Windows there are plenty of free tools. It's easy to setup.

from docker-cheat-sheet.

Mr-Phil1 avatar Mr-Phil1 commented on August 15, 2024

I had make this PDF from the ReadMe.md File with my pandoc Config. This PDF have syntax highlighting, but it is only Version 1.0. If anyone wish an Update, this person can text with an update suggestion.
README.pdf

from docker-cheat-sheet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.