Skip to content

Instantly share code, notes, and snippets.

@ernie
Created December 23, 2014 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ernie/17f41dfb7b7a597db848 to your computer and use it in GitHub Desktop.
Save ernie/17f41dfb7b7a597db848 to your computer and use it in GitHub Desktop.
Experiments with non-HTML Kramdown Parser
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