Fix spelling and linting and improve readme
This commit is contained in:
@ -29,7 +29,7 @@ export class TableOfContentsInstruction extends XmlComponent {
|
||||
if (this.properties.tcFieldIdentifier) {
|
||||
instruction = `${instruction} \\f "${this.properties.tcFieldIdentifier}"`;
|
||||
}
|
||||
if (this.properties.hiperlink) {
|
||||
if (this.properties.hyperlink) {
|
||||
instruction = `${instruction} \\h`;
|
||||
}
|
||||
if (this.properties.tcFieldLevelRange) {
|
||||
|
@ -53,7 +53,7 @@ export class TableOfContentsProperties {
|
||||
/**
|
||||
* \h option - Makes the table of contents entries hyperlinks.
|
||||
*/
|
||||
public hiperlink: boolean;
|
||||
public hyperlink: boolean;
|
||||
|
||||
/**
|
||||
* \l option - Includes TC fields that assign entries to one of the levels specified
|
||||
|
@ -19,7 +19,7 @@ describe("Table of Contents", () => {
|
||||
props.captionLabelIncludingNumbers = "C";
|
||||
props.sequenceAndPageNumbersSeparator = "D";
|
||||
props.tcFieldIdentifier = "F";
|
||||
props.hiperlink = true;
|
||||
props.hyperlink = true;
|
||||
props.tcFieldLevelRange = "L";
|
||||
props.pageNumbersEntryLevelsRange = "N";
|
||||
props.headingStyleRange = "O";
|
||||
|
@ -1,4 +1,3 @@
|
||||
// import { TableOfContentsProperties } from "./properties";
|
||||
import { Paragraph } from "file/paragraph";
|
||||
import { Run } from "file/paragraph/run";
|
||||
import { Begin, End, Separate } from "file/paragraph/run/field";
|
||||
|
Reference in New Issue
Block a user