Sha256: 28eb688ff96045a5ee0d8890a394a3f4c9c7405429adf8971f278c9a406f0c98
Contents?: true
Size: 541 Bytes
Versions: 12
Compression:
Stored size: 541 Bytes
Contents
require "coradoc" module Metanorma module Plugin module Lutaml module Liquid module CustomFilters def html2adoc(input) # Coradoc::ReverseAdoc.convert(input) Coradoc::Input::HTML.convert(input) end def interpolate(input) sub = ::Liquid::Template.parse(input) sub.render(@context) end def identify(input) input.split(/(?=[A-Z])/).map(&:downcase).join("-") end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems