lib/inline_fn.rb in inline_fn-0.1.2 vs lib/inline_fn.rb in inline_fn-0.1.3

- old
+ new

@@ -1,14 +1,14 @@ # frozen_string_literal: false require_relative "inline_fn/version" +# Change markdown footnotes format from `[^1]/[^1]:Note` to inline Pandoc or MMD style `^[Note]/[^Note]`. module InlineFn class Error < StandardError; end def inline_fn(str, style = :pandoc) - cut_point = "" ref_start = "" text = str counter = 0 until ref_start.nil? @@ -57,15 +57,5 @@ end class String include InlineFn end - - -# text = %(Lorem ipsum dolor sit amet[^1], consectetur adipisicing elit[^2], sed... -# [^1]: Text of fn 1 -# [^2]: Text of fn 2) - -# puts inline_fn(text, :mmd) -# puts inline_fn(text, :pandoc) -# puts text.inline_fn_pandoc -# puts text.inline_fn_mmd \ No newline at end of file