Options
All
  • Public
  • Public/Protected
  • All
Menu

Fence Start

Start of Fence.
Can be string value such as:

"```"

--or-- regular expression such as

/^```(?:([a-zA-Z]+)?(?:[\r\n]+))(?:[\s\S]+?)/  

FENCE EXAMPLE

Matches:

---
fenced text
---

--or--

---text
fenced text
---

Config

bp = new BuildProcess();
const opt = {
  fence: {
    start: /^---(?:([a-zA-Z]+)?(?:[\r\n]+))(?:[\s\S]+?)/,
    end: /^---(?:(?:$)|(?:[\r\n]+))/
  }
};
const results = bp.buildInclude('','./includes/replace.txt', opt);

Fence Options
All Options

Generated using TypeDoc