Skip to content

Commit e6e1436

Browse files
authored
Merge pull request #1 from laggage/disable-for-p
feat: allow disable for <p> block
2 parents a77066c + b591a52 commit e6e1436

File tree

8 files changed

+27
-777
lines changed

8 files changed

+27
-777
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
.nyc_output
3+
*.browser.js

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"mochaExplorer.files": "test.js",
3+
}

debug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const md = require('markdown-it')();
33
const markdownItAttrs = require('./');
44

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

77
const src = `header1 | header2
88
------- | -------

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ const patternsConfig = require('./patterns.js');
55
const defaultOptions = {
66
leftDelimiter: '{',
77
rightDelimiter: '}',
8-
allowedAttributes: []
8+
allowedAttributes: [],
9+
disableParagraphBlock: false
910
};
1011

1112
module.exports = function attributes(md, options_) {

0 commit comments

Comments
 (0)