Skip to main content
Module

x/docxml/mod.ts>StylesXml#ensureStyle

TypeScript (component) library for building and parsing a DOCX file
Latest
method StylesXml.prototype.ensureStyle
Deprecated
Deprecated

This is probably an incorrect approach to fixing missing styles.

import { StylesXml } from "https://deno.land/x/docxml@5.15.2/mod.ts";

Ensure that a style with this identifier exists. If it doesn't already exist, an empty (paragraph) style is added just in time.

Parameters

id: string