• This repository has been archived on 24/Sep/2024
  • Stars
    star
    131
  • Rank 275,867 (Top 6 %)
  • Language
    Ruby
  • License
    MIT License
  • Created about 11 years ago
  • Updated over 7 years ago

Reviews

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

Repository Details

Minidown is a lightweight & fast markdown parser, with complete GFM support.

Minidown

Gem Version Build Status

Minidown is yet another markdown parser, with:

  • Complete GFM support.

  • Lightweight, no other dependencies.

  • Fast & easy to use.

Project Deprecated !!!

Please use kramdown instead https://github.com/gettalong/kramdown

Installation

Add this line to your application's Gemfile:

gem 'minidown'

And then execute:

$ bundle

Or install it yourself as:

$ gem install minidown

Basic usage

require 'minidown'

Minidown.render('*hello*')
#=> "<p><em>hello</em></p>"

Custom your own handler

highlight_with_pygments = ->(lang, content) {
  Pygments.highlight(content, :lexer => lang)
}

Minidown.render source, code_block_handler: highlight_with_pygments

# if you don't like pass options every time
parser_with_highlight = Minidown::Parser.new code_block_handler: highlight_with_pygments
parser_with_highlight.render source

Command line

wget https://raw.github.com/mojombo/github-flavored-markdown/gh-pages/_site/sample_content.md
minidown sample_content.md > result.html
open result.html

looks nice!

Syntax

Complete GFM(GitHub Flavored Markdown) support. include Basic markdown, Task list, Table, Code, Blockquote etc.. view details

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

More Repositories

1

jonesforth_riscv

Jonesforth RISC-V port.
Assembly
56
star
2

restricted-sparse-merkle-tree

An optimized sparse merkle tree.
Rust
49
star
3

hdwallet

HD wallet BIP-32 related key derivation utilities.
Rust
33
star
4

buddy-alloc

Buddy-alloc is a memory allocator for no-std Rust, used for embedded environments.
Rust
28
star
5

yibu.io

A simple and elegant forum, inspired from Reddit. https://yibuio.herokuapp.com/
Ruby
16
star
6

ringo

Home brew Go web framework.
Go
7
star
7

my_feeds

Help you implement feeds / timeline / public activity in rails application, easy to use, maybe.
Ruby
7
star
8

roast2d

Homebrew 2D game engine inspired by high_impact.
Rust
7
star
9

mmr.py

Merkle Mountain Range in python
Python
6
star
10

gofy

Automatically exported from code.google.com/p/gofy
C
5
star
11

godwoken-original

A programmable account layer upon Nervos CKB.
Rust
4
star
12

my-sudt

Capsule SUDT tutorial demo
Rust
4
star
13

cbmt

Complete Binary Merkle Tree https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0006-merkle-tree/0006-merkle-tree.md
C
4
star
14

bips-note

个人的 Bitcoin Improvement Proposals 阅读笔记,对除了 Withdrawn 和 Replaced 状态以外的 BIP 进行摘要和评论。
4
star
15

ss-proxy

Shell
3
star
16

DCKB

DCKB is an extended UDT that 1 to 1 mapping to NervosDAO deposited CKB, it enables users to transfer CKB from NervosDAO while still get NervosDAO compensation.
C
3
star
17

rblisp

lisp / scheme interpreter in ruby.
Ruby
3
star
18

ckb-standalone-types

https://github.com/nervosnetwork/ckb-std/pull/57
Rust
2
star
19

mmr-c

Merkle mountain range in C
C
2
star
20

ckb-dynamic-loading-secp256k1

Rust
2
star
21

generic-channel

Generic `Sender` and `Receiver` abstract between several channel implementations: std, crossbeam-channel, futures
Rust
2
star
22

gossip-dns-example

Ruby
2
star
23

yangscript

project stop
Ruby
2
star
24

ckb-docker-compose

Docker-Compose for CKB develop/debug/test
2
star
25

minimal-ray-tracer-zig

Zig
2
star
26

TLAPlus-specs

Personal research TLA+ scripts
TLA
1
star
27

ckb-rust-demo

Rust
1
star
28

blake2b-ref.rs

A `no_std` BLAKE2B crate.
Rust
1
star
29

pb_actor

Process based Actor.
Ruby
1
star