Sha256: 738f2570c35a0c8530fc2c0d44badb7a296251c8e00737b2a700e9cd49ea2d1a
Contents?: true
Size: 622 Bytes
Versions: 9
Compression:
Stored size: 622 Bytes
Contents
module Parade module Renderers # # Within the markdown you are able to add additional formatting by starting # a new line with a period followed by the class name. This is commonly # used for writing presenter notes. # # @example Adding a presenter note within the markdown # # ## This Slide has important details # * Detail 1 # * Detail 2 # .notes Ensure that you talk about detail 1 the most! # class SpecialParagraphRenderer def self.render(html_content) html_content.gsub(/<p>\.(.*?) /, '<p class="\1">') end end end end
Version data entries
9 entries across 9 versions & 1 rubygems