Created
December 23, 2014 17:57
-
-
Save ernie/17f41dfb7b7a597db848 to your computer and use it in GitHub Desktop.
Experiments with non-HTML Kramdown Parser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'kramdown' | |
require 'kramdown/parser' | |
module Kramdown | |
module Parser | |
class MyParser < GFM | |
def initialize(source, options) | |
super | |
@span_parsers.delete(:span_html) | |
@block_parsers.delete(:block_html) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment