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

Version Path
clwiki-3.2.4 lib/cl_wiki/format_graphviz_di_graph.rb
clwiki-3.2.3 lib/cl_wiki/format/format_graphviz_di_graph.rb
clwiki-3.2.2 lib/cl_wiki/format/format_graphviz_di_graph.rb
clwiki-3.2.1 lib/cl_wiki/format/format.graphviz.digraph.rb
clwiki-3.2.0 lib/cl_wiki/format/format.graphviz.digraph.rb
clwiki-3.1.6 lib/cl_wiki/format/format.graphviz.digraph.rb
clwiki-3.1.5 lib/cl_wiki/format/format.graphviz.digraph.rb
clwiki-3.1.4 lib/cl_wiki/format/format.graphviz.digraph.rb
clwiki-3.1.3 lib/cl_wiki/format/format.graphviz.digraph.rb
clwiki-3.1.2 lib/cl_wiki/format/format.graphviz.digraph.rb
clwiki-3.1.1 lib/cl_wiki/format/format.graphviz.digraph.rb
clwiki-3.1.0 lib/cl_wiki/format/format.graphviz.digraph.rb
clwiki-3.0.4 lib/cl_wiki/format/format.graphviz.digraph.rb
clwiki-3.0.3 lib/cl_wiki/format/format.graphviz.digraph.rb
clwiki-3.0.2 lib/cl_wiki/format/format.graphviz.digraph.rb
clwiki-3.0.1 lib/cl_wiki/format/format.graphviz.digraph.rb
clwiki-3.0.0 lib/cl_wiki/format/format.graphviz.digraph.rb