@paperist/remark-latex
Advanced tools
Comparing version 0.0.4 to 0.0.5
import LaTeXCompiler from '../../LaTeXCompiler'; | ||
export default function blockMathjax(this: LaTeXCompiler, node: any): any; | ||
export default function blockMathjax(this: LaTeXCompiler, node: any, parent: any): any; |
"use strict"; | ||
const visit = require('unist-util-visit'); | ||
function blockMathjax(node) { | ||
function blockMathjax(node, parent) { | ||
node.label = ''; | ||
visit(node, 'crossReferenceLabel', (crNode) => { | ||
const nextNodeIdx = node.index + 1; | ||
const nextNode = parent.children[nextNodeIdx]; | ||
visit(nextNode, 'crossReferenceLabel', (crNode) => { | ||
node.label += this.convert(crNode); | ||
@@ -7,0 +9,0 @@ }); |
{ | ||
"name": "@paperist/remark-latex", | ||
"description": "wooorm/remark plugin for latex", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"dependencies": { | ||
@@ -6,0 +6,0 @@ "ejs": "^2.5.2", |
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
20564
412