Extract runs and text
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import { Paragraph, TextRun } from "@file/paragraph";
|
||||
import { ElementCompact } from "xml-js";
|
||||
import { PatchDocumentOptions } from "./from-docx";
|
||||
import { IPatch } from "./from-docx";
|
||||
|
||||
export const replacer = (json: ElementCompact, options: PatchDocumentOptions): ElementCompact => {
|
||||
export const replacer = (json: ElementCompact, options: IPatch): ElementCompact => {
|
||||
for (const child of options.children) {
|
||||
if (child instanceof Paragraph) {
|
||||
console.log("is para");
|
||||
|
Reference in New Issue
Block a user