Giter Club home page Giter Club logo

mdconvert's Introduction

I am a conventional Markdown document!
View me on Github!

mdconvert

  • mdconvert is a Markdown conversion tool with extra features and special syntax.

Compiling mdconvert

  • Source code can be compiled via ghc:

ghc mdconvert

  • Alternatively, an executable of the latest version has been provided.

Using mdconvert

  • Running mdconvert with no arguments or -h prints usage information.

./mdconvert
usage: mdconvert infile [outfile] [-s stylefile]

  • To use mdconvert, give an input file name and an output file name.

./mdconvert test.md output.html

  • This will convert the contents of test.md and store the result in the newly-created output.html.

  • Optionally, one can run mdconvert giving only an input file name.

./mdconvert test.md

  • This will convert the contents of test.md and store the result in test.html.

Embedding Stylesheets with mdconvert

  • Stylesheets can be embedded into output files by using the -s flag, then giving the stylesheet's file name.

./mdconvert test.md output.html -s style.css

  • This will convert the contents of test.md and store the result in output.html while embedding style.css in output.html.

./mdconvert test.md -s style.css

  • This will convert the contents of test.md and store the result in test.html while embedding style.css in test.html.

mdconvert's Syntax

Paragraphs

  • Normal text is parsed as paragraph.
  • Paragraphs are separated by a blank line.
  • Lines breaks can be inserted by putting two spaces at the end of a line.

Headings

  • Headings are inserted at the beginning of a paragraph using the # character.
  • The heading level is determined by the number of # symbols.
  • The below example produces an <h1>:

# Level 1 Heading

  • The below example produces an <h2>:

## Level 2 Heading

  • The below example produces an <h6>:

###### Level 6 Heading

Emphasis

Bold

  • Surround text with **.

Bolding the word **bold**.

Italics

  • Surround text with _.

Italicizing the word _italics_.

Monospace/Code

  • Surround text with `.

Monospacing the word `monospace`.

Strikethrough

  • Surround text with ~~.

Striking through the word ~~strikethrough~~

Lists

Unordered Lists

  • Unordered lists are inserted using the * character followed by a space.
  • Unordered lists must be in their own paragraph.
  • Nested lists are not supported.

* An item
* Another item
* One more item

Ordered Lists

  • Ordered lists are inserted using a numeric character followed by a . and a space.
  • Ordered lists must be in their own paragraph.
  • Nested lists are not supported.

1. First item
2. Second item
3. Third item

Links

  • Links have been modified in mdconvert.
  • Links are surrounded by double-brackets ([[ ]]) and contain the text in quotes followed by the source in quotes.

I love [["mdconvert" "https://github.com/swansonmp/mdconvert"]]!

Multimedia

Images

  • Images are simplified in mdconvert.
  • Only the !, source, and parenthesis are required.
  • Images must be in their own paragraph.

!(image.png)

Videos

  • Videos are similar to images, except they use the ^ character.
  • Video must be in its own paragraph.
  • Videos are added with a 320x240 resolution and with controls.
  • All video formats supported by HTML are supported by mdconvert.
  • Browsers that do not support the <video> tag will display an error message.

^(video.mp4)

Audio

  • Audio is similar to both images and video, except using the @ character.
  • Audio must be in its own paragraph.
  • Audio is added with controls.
  • All audio formats supported by HTML are supported by mdconvert.
  • Browsers that do not support the <audio> tag will display an error message.

@(audio.mp3)

Tables

  • Tables are an addition to mdconvert, and are easier to use than reStructuredText.
  • Tables must be in their own paragraph.
  • The first line of the table must be a +, with additional lines containing data.
  • Data is entered in CSV format, meaning that columns are delineated by , and rows by a new line.

+
R0C0, R0C1, R0C2
R1C0, R1C1, R1C2
R2C0, R2C1, R2C2

Horizontal Rules

  • Horizontal rules are inserted using ---, ***, or ___.
  • Horizontal rules must be in their own paragraph.

---

***

___

More Information

License

  • MIT

mdconvert's People

Watchers

Matthew Swanson avatar

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.