Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I export Markdown documentation to different formats? [closed]

Writing Documentation

As a developer, I've been looking for the easiest way to write and update documentation. Not a boring text that screams "don't read me", but something happily (and easily) formatted with extra easy support for code.

From LaTeX to wiki to Markdown, just to name a few, I think Markdown is about as close as it gets. But the document itself is very nerdy and not very portable. This will need to become HTML and PDF.

Markdown Editor

So basically I am looking for an editor, converter, or any clever trick I haven't thought of, to turn this documentation into HTML and PDF.

Hands down the simplest editor I have found is StackEdit, but it doesn't export HTML well; it depends on online stylesheets that aren't linked properly and the exported HTML is pretty unbearable to see. It wouldn't work offline anyway.

Export HTML and PDF

I am looking for any way to do this properly. I don't mind if there's some stand alone application or script that converts the markdown file into proper HTML. I need someone to show me the tricks in documentation-generating that I can't find.

PDF is a different story. I think I spammed my computer full with HTML-to-PDF converters, and each of them added spam and watermarks to my awesomely clean documentation.

like image 713
Redsandro Avatar asked Aug 29 '13 13:08

Redsandro


People also ask

Can you open MD file in word?

Save a Markdown File as a Word Document Again, there are just two steps. Open Microsoft Word and open any Markdown file. Use the Save as… command and choose Word Document from the Save as type field.

How do I export a Markdown file?

You can write Markdown online in its editor or just paste in your completed text, then preview the formatted version on the right. Copy the formatted text for a quick export—or click the Export as menu to save your document in HTML, PDF, or plain text formats.

How do I format a MD file?

md file is a plain-text document that contains no other elements. The text can be formatted usingspecial inline text symbols. For example, if you want a word or paragraph to be displayed in bold, you need to type two asterisks before and after it. The “MD” in the .

Is Markdown good for documentation?

Many technical writers find lots of benefits in using Markdown for their documentation. Some of these benefits are: Markdown provides semantic meaning for content in a relatively simple way. You can write rich formatted content extremely quickly (compared to writing directly in HTML tags)


2 Answers

For choice of output formats, you probably can't beat pandoc - it will convert Markdown (and many other formats) into HTML, PDF, DocBook, and a number more. Its defaults are fairly sane, but you can include your own templates easily enough if you wish. It also has support for language-specific code highlighting in blocks.

like image 142
Oliver Matthews Avatar answered Oct 19 '22 15:10

Oliver Matthews


The following letters are to denote some common features:​

  • M: Mathematical formula syntax support

  • G: GitHub Flavoured Markdown

  • L: Live Preview

  • C: Syntax highlighting for code

  • E: Export to various formats

  • S: Custom Styling i.e custom CSS for HTML, etc.

  • P: Support for plugins

  • F: Free

  • D: Active development

Here they come (in no specific order):

1. Remarkable

Simple, elegant, feature-rich D F L G S P M C E(pdf, html)

2. ReText

Simple, supports both restructured text and markdown D F M P E(html, odt, pdf)

3. UberWriter

Minimal and lightweight F C M E(pdf html rtf)

5. Typora

Simple, elegant F(while in beta) D G C M L E(html pdf epub docx odt etc.)

6. Haroopad

Feature-rich, beta editor for blogging and mailing, import many formats F G L M E(html)

7. Mark My Words

Simple F D L E(pdf html)

8. Gitbook Editor

For documentation, digital writing and publishing D F G L C M E (HTML PDF epub mobi)

9. Abricotine

Editor based on web technology L F D G C E(HTML) M S

10. GhostWriter

Simple, distraction-free, robust F G D E (HTML , other formats by extensions), S

11. Caret

Minimal, robust D L G C E (PDF) M S

13. Elegant Markdown Editor (EME)

Minimal, simple D L G C E (PDF) M

14. Plugins

The following are plugins available for various IDEs and editors. Some have plugins to convert to HTML or PDF. Check them out.

  • Atom

  • Vim: Instant-Markdown Plugin

  • Bracket: MarkdownPreview Plugin

  • Sublime Text: Markdown Plugin

  • GNU Emacs

  • Visual Studio Code

  • Notepadqq

  • Jetbrains IDEs: Markdown Navigator

  • Qownnotes

like image 41
Charitoo Avatar answered Oct 19 '22 16:10

Charitoo