Skip to content

Commit

Permalink
feat(unified-latex-stringify): make compatible with new unified types
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah committed Sep 29, 2023
1 parent 9f55877 commit 108576f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { getPStyle } from 'ooxast-util-get-style'
import { H, Body, Handle, P, UnifiedLatexNode } from '../types.js'
import { Element } from 'xast-util-to-string/lib'
import { Element } from 'xast'
import { one } from '../one.js'
// import { getPStyle } from '../util/get-pstyle.js'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { toString } from '@unified-latex/unified-latex-util-to-string'
import { Root, Node } from '@unified-latex/unified-latex-types/'
import { Root } from '@unified-latex/unified-latex-types/'

import { CompilerFunction, Plugin } from 'unified'
import { Compiler, Plugin } from 'unified'

const unifiedLatexStringify: Plugin<void[], Root, string> = function unifiedLatexStringify() {
const compiler: CompilerFunction<Root, string> = (tree) => {
const compiler: Compiler<Root, string> = (tree) => {
// Assume options.
return toString(tree)
}
Expand Down

0 comments on commit 108576f

Please sign in to comment.