Commit a8f61d9d authored by Paul Asmuth's avatar Paul Asmuth
Browse files

doc: markdown underscore fix

parent 8ce5daed
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -16,6 +16,10 @@ require 'digest/md5'
def md_pre(text)
  text.gsub!(/`([^`]+)`/, '<code>\1</code>')

  text.gsub!(/(^(?! {4}|\t)\w+_\w+_\w[\w_]*)/) do |x|
    x.gsub('_', '\_') if x.split('').sort.to_s[0..1] == '__'
  end

  text.gsub!(/( *){{{([^}]+)}}}/) do |m|
    IO.read(File.join(BASEDIR, $2)).split("\n").map do |l|
      "#{$1}#{l}"
+1 −2
Original line number Diff line number Diff line
@@ -2,10 +2,9 @@
Todo
====

  → doc: fix fixpauls, make fnordmetric products italic, spellcheck, fix markdown underscores

  Show HN: Open-Source framwork for beautiful real-time dashboards

  → make fnordmetric products italic
  → doc: example: age distribution
  → doc: hacking
  → doc: document all widget options