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

GruntFile.js
module.exports = function (grunt) {
  grunt.initConfig({
    build_include: {
      default: {
        options: {
          fence: {
            start: /^---(?:([a-zA-Z]+)?(?:[\r\n]+))(?:[\s\S]+?)/,
            end: /^---(?:(?:$)|(?:[\r\n]+))/
          }
        },
        src: './src/maint.ts',
        dest: './scratch/ts/main.ts'
      }
    }
  });
  grunt.loadNpmTasks('grunt-build-include');
  grunt.registerTask('default', ['build_include:default']);
};

Fence Options
All Options

Generated using TypeDoc