Class: Hamdown::MdRegs::Fonts2

Inherits:
AbstractReg show all
Defined in:
lib/hamdown/md_regs/fonts2.rb

Overview

class with logic of markdown’s italic and monospace text

Constant Summary collapse

REGS =

TODO: add ‘?:’ to unuseful group /learn(?:bydoing)/

{
  'italic' => /((?<!\*|\\)\*[^\*\n].+?[^\*|\\]\*(?!\*))|(_.+?_)/,
  'monospace' => /[^`](`[^`]+`)/
}.freeze

Method Summary

Methods inherited from AbstractReg

#perform