Skip to main content

parse-cards

Documentation / lib/components/Editor/docx/parse-cards

extractCards()​

function extractCards(doc: any): any;

Defined in: web-app/src/lib/components/Editor/docx/parse-cards.js:4

Parameters​

ParameterType

doc

any

Returns​

any


extractURL()​

function extractURL(textWithURL: any): any;

Defined in: web-app/src/lib/components/Editor/docx/parse-cards.js:201

Parameters​

ParameterType

textWithURL

any

Returns​

any


getBlocksUntil()​

function getBlocksUntil(
blocks: any,
anchor: any,
styles: any): any;

Defined in: web-app/src/lib/components/Editor/docx/parse-cards.js:255

Parameters​

ParameterType

blocks

any

anchor

any

styles

any

Returns​

any


getIndexesWith()​

function getIndexesWith(blocks: any, styles: any): any;

Defined in: web-app/src/lib/components/Editor/docx/parse-cards.js:244

Parameters​

ParameterType

blocks

any

styles

any

Returns​

any


parseCard()​

function parseCard(doc: Document, anchor: number): object;

Defined in: web-app/src/lib/components/Editor/docx/parse-cards.js:19

Parses card objects from the docx document, returns an array of objects with summary, author, year, cite, url, and content in html

Parameters​

ParameterTypeDefault valueDescription

doc

Document

undefined

anchor

number

0

Returns​

object

NameTypeDefined in

author

string

web-app/src/lib/components/Editor/docx/parse-cards.js:16

cite

string

web-app/src/lib/components/Editor/docx/parse-cards.js:17

content

string

web-app/src/lib/components/Editor/docx/parse-cards.js:17

summary

string

web-app/src/lib/components/Editor/docx/parse-cards.js:16

url

string

web-app/src/lib/components/Editor/docx/parse-cards.js:17

year

number

web-app/src/lib/components/Editor/docx/parse-cards.js:17