get rehype and remark on the same unist-util-visit version
This commit is contained in:
parent
640ee5f145
commit
cc233d66cc
5 changed files with 4 additions and 6 deletions
|
@ -192,7 +192,7 @@ react-pattern:
|
|||
'@freesewing/i18n': *freesewing
|
||||
rehype-jargon:
|
||||
_:
|
||||
'unist-util-visit': '^2.0.3'
|
||||
'unist-util-visit': '^4.1.0'
|
||||
'hast-util-from-html': '^1.0.0'
|
||||
remark-jargon:
|
||||
_:
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
},
|
||||
"peerDependencies": {},
|
||||
"dependencies": {
|
||||
"unist-util-visit": "^2.0.3",
|
||||
"unist-util-visit": "^4.1.0",
|
||||
"hast-util-from-html": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import visit from 'unist-util-visit'
|
||||
import { visit } from 'unist-util-visit'
|
||||
import { fromHtml } from 'hast-util-from-html'
|
||||
|
||||
const jargonTransform = (term, html) => `<span class="jargon-term">${term}<span class="jargon-info">${html}</span></span>`
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import path from 'path'
|
||||
import fs from 'fs'
|
||||
import {build} from '../../../packages/i18n/src/prebuild.mjs'
|
||||
|
||||
export const prebuildI18n = async(site, only=false) => {
|
||||
|
|
|
@ -23670,7 +23670,7 @@ unist-util-visit@^1.4.1:
|
|||
dependencies:
|
||||
unist-util-visit-parents "^2.0.0"
|
||||
|
||||
unist-util-visit@^2.0.0, unist-util-visit@^2.0.3:
|
||||
unist-util-visit@^2.0.0:
|
||||
version "2.0.3"
|
||||
resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-2.0.3.tgz#c3703893146df47203bb8a9795af47d7b971208c"
|
||||
integrity sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue