Class: Hamdown::MdRegs::Fonts

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

Overview

class with logic of markdown’s bold, link, bold italic text

Constant Summary collapse

REGS =
{
  'bold' => /(?<!\*|\\\*)\*{2,2}[^\*\n].+?[^\*]\*{2,2}(?!\*|\\)/,
  'b_italic' => /(?<!\*|\\)\*{3,3}[^\*\n].+?[^\*|\\]\*{3,3}(?!\*)/,
  'link' => /[^!]\[[^\[\]]*?\]\(.*?\)|^\[*?\]\(.*?\)/,
}.freeze

Method Summary

Methods inherited from AbstractReg

#perform