Sha256: ff55c329f0e74b0015ec01de8e182bac455262a736d9aabf9fc5eb3ff9c1a757
Contents?: true
Size: 466 Bytes
Versions: 17
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true class FormatGraphVizDiGraph < ClWiki::CustomFormatter def self.match_re /digraph.*\}/m end def self.format_content(content, page) content.sub!(/digraph.*\}/m, "<a href=\"dot.rb?fn=#{page.file_full_path_and_name}\"> <img src=\"dot.rb?fn=#{page.file_full_path_and_name}\"> </a>") content end end ClWiki::CustomFormatters.instance.register(FormatGraphVizDiGraph)
Version data entries
17 entries across 17 versions & 1 rubygems