Skip to content

Commit

Permalink
allow user to configure delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed May 20, 2018
1 parent 6b61e85 commit 0e18db0
Show file tree
Hide file tree
Showing 5 changed files with 362 additions and 302 deletions.
10 changes: 8 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
'use strict';

const patterns = require('./patterns.js');
const patternsConfig = require('./patterns.js');

module.exports = function attributes(md) {
const defaultOptions = {
leftDelimiter: '{',
rightDelimiter: '}'
};

module.exports = function attributes(md, options = defaultOptions) {
const patterns = patternsConfig(options);

function curlyAttrs(state) {
let tokens = state.tokens;
Expand Down
Loading

0 comments on commit 0e18db0

Please sign in to comment.