Skip to content

Commit

Permalink
Merge pull request #1 from laggage/disable-for-p
Browse files Browse the repository at this point in the history
feat: allow disable for <p> block
  • Loading branch information
laggage authored Feb 26, 2023
2 parents a77066c + b591a52 commit e6e1436
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 777 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.nyc_output
*.browser.js
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mochaExplorer.files": "test.js",
}
2 changes: 1 addition & 1 deletion debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const md = require('markdown-it')();
const markdownItAttrs = require('./');

md.use(markdownItAttrs).use(require('../markdown-it-implicit-figures'));
md.use(markdownItAttrs);

const src = `header1 | header2
------- | -------
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const patternsConfig = require('./patterns.js');
const defaultOptions = {
leftDelimiter: '{',
rightDelimiter: '}',
allowedAttributes: []
allowedAttributes: [],
disableParagraphBlock: false
};

module.exports = function attributes(md, options_) {
Expand Down
Loading

0 comments on commit e6e1436

Please sign in to comment.