3 var repeat = require('repeat-string');
5 module.exports = thematic;
7 /* Stringify a `thematic-break`.
8 * The character used is configurable through `rule`: (`'_'`)
12 * The number of repititions is defined through
13 * `ruleRepetition`: (`6`)
17 * Whether spaces delimit each character, is configured
18 * through `ruleSpaces`: (`true`)
23 var options = this.options;
24 var rule = repeat(options.rule, options.ruleRepetition);
25 return options.ruleSpaces ? rule.split('').join(' ') : rule;