hpr1832 :: Simplify writing using markdown and pandoc - Audio de Archivo Gratis

hpr1832 :: Simplify writing using markdown and pandoc - Audio de Archivo Gratis

Autor(es): b-yeezi

1 / 1hpr1832

00:00
00:00
1 Capítulo(s)
  • 1. hpr1832

Acerca de

Summary: How I use Markdown and Pandoc in my writing workflow

Source: [http://hackerpublicradio.org/eps.php?id=1832](http://hackerpublicradio.org/eps.php?id=1832)

My Document Creation workflow using Markdown and Pandoc

=======================================================

b-yeezi


Show Notes

==========

I write almost exclusively in Markdown [https://daringfireball.net/projects/markdown](https://daringfireball.net/projects/markdown) when writing documents and taking notes. I use the program, Pandoc [https://www.pandoc.org](https://www.pandoc.org) to convert markdown to different formats, including odt, docx, and pdf.

The original purpose of Markdown: 1 > Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).

Markdown has since been extended to include more features and functionality. Extended versions include Github-flavored markdown [https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) and multi-markdown [https://fletcherpenney.net/multimarkdown](https://fletcherpenney.net/multimarkdown).

Some of the basic syntax:

  • Headings - use one or more # to make headings

  • bold - use __ or ** for bold

  • italics - use _ or * for italics

  • hyperlinks - use [text](link) for hyperlinks

  • images - ![text](link) for images

  • tables -

Head1 | Head2 | Head3

  • lists - use - or * or + at the beginning of a line

  • quotes and code - ` for single code item, > for block quote, tab for block code, ``` for fenced code. Highlighting is available

Pandoc: 2 Pandoc can convert documents in markdown, reStructuredText, textile, HTML, DocBook, LaTeX, MediaWiki markup, TWiki markup, OPML, Emacs Org-Mode, Txt2Tags, Microsoft Word docx, EPUB, or Haddock markup to

  • HTML formats: XHTML, HTML5, and HTML slide shows using Slidy, reveal.js, Slideous, S5, or DZSlides.

  • Word processor formats: Microsoft Word docx, OpenOffice/LibreOffice ODT, OpenDocument XML

  • Ebooks: EPUB version 2 or 3, FictionBook2

  • Documentation formats: DocBook, GNU TexInfo, Groff man pages, Haddock markup

  • Page layout formats: InDesign ICML

  • Outline formats: OPML

  • TeX formats: LaTeX, ConTeXt, LaTeX Beamer slides

  • PDF via LaTeX

  • Lightweight markup formats: Markdown (including CommonMark), reStructuredText, AsciiDoc, MediaWiki markup, DokuWiki markup, Emacs Org-Mode, Textile

  • Custom formats: custom writers can be written in lua

I use Ubuntu because it is the only distro that does not bundle pandoc in the haskell libraries. With pandoc, you can specify the template that you are using, so that the same one document can be formatted quickly in many different ways and file formats.

Workflow:

  1. Write using vim or other text editor. When I was starting, I used a markdown previewer

  2. Create the template for the client

  3. Convert document appropriately

Use markdown for:

  • taking notes

  • creating SOPs

  • Creating User guides (Image Magick mogrify)

  • Creating things for my website

Other programs and tools:

  • Retext

  • Haroopad

  • discount

  • stackedit.io

  • atom

  • texlive for going direct to pdf


  1. from [https://daringfireball.net/projects/markdown](https://daringfireball.net/projects/markdown)↩

  2. from [https://www.pandoc.org](https://www.pandoc.org)↩