fix: parse ::directives correctly (#41186)
This commit is contained in:
committed by
GitHub
parent
b12360d4a8
commit
04c2f4e620
@@ -1,10 +1,10 @@
|
||||
const { inspect } = require('util');
|
||||
const path = require('path');
|
||||
|
||||
const { parsemd } = require('../index');
|
||||
const { parseMD } = require('../index');
|
||||
|
||||
(async () => {
|
||||
const fullPath = path.resolve(__dirname, '../__fixtures__/realistic.md');
|
||||
const output = await parsemd(fullPath);
|
||||
const fullPath = path.resolve(__dirname, './example.md');
|
||||
const output = await parseMD(fullPath);
|
||||
console.log(inspect(output, null, null, true));
|
||||
})();
|
||||
|
Reference in New Issue
Block a user