Sha256: 8a94392e641079abf5fc69bad2589aebafa5f481ee45330ef81885b329ada477
Contents?: true
Size: 371 Bytes
Versions: 1
Compression:
Stored size: 371 Bytes
Contents
# frozen_string_literal: true require 'kramdown' require 'rom/files/types' module ROM module Files module Types module Markdown KDocument = ::Kramdown::Document Document = Dry::Types::Definition[KDocument].new(KDocument).constructor do |doc| doc.is_a?(KDocument) ? doc : KDocument.new(doc) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-files-0.2.0 | lib/rom/files/extensions/markdown/types.rb |