@amanda-mitchell/micromark-extension-footer
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -1,5 +0,5 @@ | ||
const micromark = require('micromark'); | ||
import micromark from 'micromark'; | ||
const syntax = require('../index'); | ||
const html = require('../html'); | ||
import syntax from '../index.js'; | ||
import html from '../html.js'; | ||
@@ -6,0 +6,0 @@ function renderMarkdown(document) { |
@@ -1,2 +0,2 @@ | ||
function createHtmlExtension() { | ||
export default function createHtmlExtension() { | ||
function enterFooter(event) { | ||
@@ -28,3 +28,1 @@ const isTight = !event.loose; | ||
} | ||
module.exports = createHtmlExtension; |
14
index.js
@@ -1,6 +0,6 @@ | ||
const codes = require('micromark/dist/character/codes'); | ||
const markdownSpace = require('micromark/dist/character/markdown-space'); | ||
const constants = require('micromark/dist/constant/constants'); | ||
const types = require('micromark/dist/constant/types'); | ||
const spaceFactory = require('micromark/dist/tokenize/factory-space'); | ||
import codes from 'micromark/dist/character/codes'; | ||
import markdownSpace from 'micromark/dist/character/markdown-space'; | ||
import constants from 'micromark/dist/constant/constants'; | ||
import types from 'micromark/dist/constant/types'; | ||
import spaceFactory from 'micromark/dist/tokenize/factory-space'; | ||
@@ -93,6 +93,6 @@ const nodeNames = { | ||
module.exports = function directive() { | ||
export default function directive() { | ||
return { | ||
document: { [codes.caret]: [footer] }, | ||
}; | ||
}; | ||
} |
{ | ||
"name": "@amanda-mitchell/micromark-extension-footer", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "A micromark extension that parses footer elements.", | ||
@@ -19,2 +19,3 @@ "main": "index.js", | ||
], | ||
"type": "module", | ||
"publishConfig": { | ||
@@ -24,9 +25,8 @@ "access": "public" | ||
"devDependencies": { | ||
"@amanda-mitchell/node-project-scripts": "^2.12.0", | ||
"jest": "^26.6.3", | ||
"micromark": "~2.10.0" | ||
"@amanda-mitchell/node-project-scripts": "^3.0.11", | ||
"micromark": "~2.11.0" | ||
}, | ||
"peerDependencies": { | ||
"micromark": "~2.10.0" | ||
"micromark": "~2.11.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10613
2
17
205
Yes