• Stars
    star
    752
  • Rank 60,353 (Top 2 %)
  • Language
    C
  • License
    Other
  • Created over 16 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Discount (For Ruby) Implementation of John Gruber's Markdown

Discount Markdown Processor for Ruby

Build Status

Discount is an implementation of John Gruber's Markdown markup language in C. It implements all of the language described in the markdown syntax document and passes the Markdown 1.0 test suite.

CODE: git clone git://github.com/davidfstr/rdiscount.git
HOME: https://dafoster.net/projects/rdiscount/
DOCS: https://rdoc.info/github/davidfstr/rdiscount/master/RDiscount
BUGS: https://github.com/davidfstr/rdiscount/issues

Discount was developed by David Loren Parsons. The Ruby extension is maintained by David Foster.

INSTALL, HACKING

New releases of RDiscount are published to RubyGems:

$ [sudo] gem install rdiscount

The RDiscount sources are available via Git:

$ git clone git://github.com/davidfstr/rdiscount.git
$ cd rdiscount
$ rake --tasks

See the file BUILDING for hacking instructions.

USAGE

RDiscount implements the basic protocol popularized by RedCloth and adopted by BlueCloth:

require 'rdiscount'
markdown = RDiscount.new("Hello World!")
puts markdown.to_html

Additional processing options can be turned on when creating the RDiscount object:

markdown = RDiscount.new("Hello World!", :smart, :filter_html)

Inject RDiscount into your BlueCloth-using code by replacing your bluecloth require statements with the following:

begin
  require 'rdiscount'
  BlueCloth = RDiscount
rescue LoadError
  require 'bluecloth'
end

COPYING

Discount is free software; it is released under a BSD-style license that allows you to do as you wish with it as long as you don't attempt to claim it as your own work. RDiscount adopts Discount's license verbatim. See the file COPYING for more information.

More Repositories

1

Python-in-Mac-App-Store

Barebones Python app that can be submitted to the Mac App Store.
Shell
93
star
2

trycast

trycast parses JSON-like values whose shape is defined by TypedDicts and other standard Python type hints.
Python
77
star
3

Crystal-Web-Archiver

Downloads websites for long-term archival.
Python
59
star
4

nanoproxy

Small fast HTTP forward proxy in Go.
Go
52
star
5

webcrystal

An archiving HTTP proxy and on-disk archival format for websites.
Python
33
star
6

idris-insertion-sort

Provably correct implementation of insertion sort in Idris.
Idris
28
star
7

ClassicBox

Allows one-click installation of Mac OS 0.x - 9.x software.
Python
10
star
8

Uhuru

A translation assistant for reading Japanese text quickly.
JavaScript
9
star
9

notifymail

Allows scripts to send email to a preconfigured address.
Python
7
star
10

pydeps

Visualizes Python module dependencies.
Python
6
star
11

YouTube-iTunes-Sync

Syncs a YouTube music playlist with iTunes.
Python
6
star
12

dotfiles

My command line customizations for OS X.
Python
4
star
13

iTunes-Connect-Autodownload

Downloads sales reports from iTunes Connect automatically.
Python
4
star
14

dafoster.net

My personal website. Good example of a complex Jekyll site.
JavaScript
3
star
15

StreamStream

Access PHP stream objects by URL.
PHP
3
star
16

channels-chat-example

Example chat server implemented with Django Channels.
Python
2
star
17

arf

Tiny research language for investigating how to type-check programs with recursive function calls.
OCaml
2
star
18

ActiveSeattle

Find pickup sports in Seattle. [INCOMPLETE]
PHP
1
star
19

davidfstr.github.com

Deployed version of my website.
HTML
1
star
20

plint

A Python type checker and linter that just works.
OCaml
1
star
21

direncode

Encodes all video files from a source directory to a target directory, optionally continuously.
Python
1
star
22

Decimal-Binary-Unit-Converter

Converts byte values between decimal and binary units.
Java
1
star
23

nc-ddns-basic

Namecheap DNS Updater client (Basic)
Shell
1
star
24

tic-tac-idris

Tic-tac-toe game written in Idris.
Idris
1
star