Note This repository is automatically generated from the main parser monorepo. Please submit any issues or pull requests there.
Utility to convert a jast tree to a texast tree.
- What is this?
- When should I use this?
- Install
- Use
- API
- Syntax tree
- Types
- Compatibility
- Security
- Related
- Contribute
- License
This package is ESM only. In Node.js (version 12.20+, 14.14+, 16.0+, 18.0+), install as
pnpm add jast-util-to-texast
# or with yarn
# yarn add jast-util-to-texast
# or with npm
# npm install jast-util-to-texast
Convert all nodes in tree using j
all(j: J, parent: Node): TexastContent[];
Name | Type | Description |
---|---|---|
j |
J |
jast constructor function |
parent |
Node |
Defined in: src/lib/all.ts:10
one(j: J, node: Node, parent: Parent): TexastContent | TexastContent[] | void;
Name | Type |
---|---|
j |
J |
node |
Node |
parent |
Parent |
TexastContent
| TexastContent
[] | void
Defined in: src/lib/one.ts:7
toTexast(tree: TexastContent | TexastRoot, options: Options = ...): TexastContent | TexastRoot;
| Name | Type |
| :-------- | :------------------------------------------ | ------------------------------------- |
| tree
| TexastContent
| TexastRoot
|
| options
| Options
|
Defined in: src/lib/jast-util-to-texast.ts:24
Const
object
{
abbrev: () => void;
abbrevJournaltitle: () => void;
abstract: () => void;
accessDate: () => void;
ack: () => void;
addrLine: () => void;
address: () => void;
aff: () => void;
affAlternatives: () => void;
altText: () => void;
altTitle: () => void;
alternatives: () => void;
annotation: () => void;
anonymous: () => void;
answer: () => void;
answerSet: () => void;
app: () => void;
appGroup: () => void;
array: () => void;
article: (j: J, node: Root) => TexastContent;
articleCategories: () => void;
articleId: () => void;
articleMeta: () => void;
articleTitle: (j: J, node: Parents, parent: Parent) => TexastContent;
articleVersion: () => void;
articleVersionalternatives: () => void;
attrib: () => void;
authorComment: () => void;
authorNotes: () => void;
awardDesc: () => void;
awardGroup: () => void;
awardId: () => void;
awardName: () => void;
back: (j: J, parent: Node) => TexastContent[];
bio: () => void;
blockAlternatives: () => void;
body: (j: J, node: Root) => TexastContent;
bold: (j: J, node: Parents, parent: Parent) => TexastContent;
boxedText: () => void;
break: () => void;
caption: (j: J, node: Parents, parent: Parent) => TexastContent;
chapterTitle: () => void;
chemStruct: () => void;
chemStructwrap: () => void;
citationAlternatives: () => void;
city: () => void;
code: () => void;
col: () => void;
colgroup: () => void;
collab: () => void;
collabAlternatives: () => void;
command: (j: J, node: Parents, parent: Parent) => TexastContent;
comment: () => void;
compoundKwd: () => void;
compoundKwdpart: () => void;
compoundSubject: () => void;
compoundSubjectpart: () => void;
confAcronym: () => void;
confDate: () => void;
confLoc: () => void;
confName: () => void;
confNum: () => void;
confSponsor: () => void;
confTheme: () => void;
conference: () => void;
contrib: () => void;
contribGroup: (j: J, node: Node) => TexastContent[];
contribId: () => void;
contributedResourcegroup: () => void;
copyrightHolder: () => void;
copyrightStatement: () => void;
copyrightYear: () => void;
corresp: () => void;
count: () => void;
country: () => void;
counts: () => void;
customMeta: () => void;
customMetagroup: () => void;
dataTitle: () => void;
date: () => void;
dateIncitation: () => void;
day: () => void;
def: () => void;
defHead: () => void;
defItem: () => void;
defList: () => void;
degrees: () => void;
disp-quote: (j: J, node: DispQuote) => Environment;
dispFormula: () => void;
dispFormulagroup: () => void;
dispQuote: () => void;
edition: () => void;
elementCitation: () => void;
elocationId: () => void;
email: () => void;
equationCount: () => void;
era: () => void;
etal: () => void;
event: () => void;
eventDesc: () => void;
explanation: () => void;
extLink: (j: J, node: ExtLink) => {
children: CommandArg[];
name: string;
type: string;
};
extendedBy: () => void;
fax: () => void;
fig: (j: J, fig: Fig) => {
children: TexastContent[];
name: string;
type: string;
};
figCount: () => void;
figGroup: () => void;
fixedCase: () => void;
floatsGroup: () => void;
fn: (j: J, parent: Node) => TexastContent[];
fnGroup: (j: J, parent: Node) => TexastContent[];
fpage: () => void;
front: (j: J, node: Root) => TexastContent;
frontStub: () => void;
fundingGroup: () => void;
fundingSource: () => void;
fundingStatement: () => void;
givenNames: () => void;
glossary: () => void;
glyphData: () => void;
glyphRef: () => void;
gov: () => void;
graphic: (j: J, node: Graphic) => {
children: (CommandArg | {
type: string;
value: string;
})[];
name: string;
type: string;
};
history: () => void;
hr: () => void;
indexTerm: () => void;
indexTermrangeend: () => void;
inlineFormula: () => void;
inlineGraphic: (j: J, node: Graphic) => {
children: (CommandArg | {
type: string;
value: string;
})[];
name: string;
type: string;
};
inlineMedia: () => void;
inlineSupplementarymaterial: () => void;
institution: () => void;
institutionId: () => void;
institutionWrap: () => void;
instruction: () => void;
isbn: () => void;
issn: () => void;
issnL: () => void;
issue: () => void;
issueId: () => void;
issuePart: () => void;
issueSponsor: () => void;
issueSubtitle: () => void;
issueTitle: () => void;
issueTitlegroup: (j: J, node: Node) => TexastContent[];
italic: (j: J, node: Node) => TexastContent;
journalId: () => void;
journalMeta: () => void;
journalSubtitle: () => void;
journalTitle: (j: J, node: Parents, parent: Parent) => TexastContent;
journalTitlegroup: (j: J, node: Node) => TexastContent[];
kwd: () => void;
kwdGroup: () => void;
label: (j: J, node: Parents, parent: Parent) => TexastContent;
license: () => void;
licenseP: () => void;
list: (j: J, list: List) => {
children: TexastContent[];
name: string;
type: string;
};
listItem: (j: J, item: ListItem) => TexastContent;
longDesc: () => void;
lpage: () => void;
media: () => void;
metaName: () => void;
metaValue: () => void;
milestoneEnd: () => void;
milestoneStart: () => void;
mixedCitation: () => void;
monospace: () => void;
month: () => void;
name: () => void;
nameAlternatives: () => void;
namedContent: () => void;
nestedKwd: () => void;
nlmCitation: () => void;
note: () => void;
notes: () => void;
objectId: () => void;
onBehalfof: () => void;
openAccess: () => void;
option: () => void;
overline: () => void;
overlineEnd: () => void;
overlineStart: () => void;
p: (j: J, p: P) => TexastContent;
pageCount: () => void;
pageRange: () => void;
partTitle: () => void;
patent: () => void;
permissions: () => void;
personGroup: () => void;
phone: () => void;
postalCode: () => void;
prefix: () => void;
preformat: () => void;
price: () => void;
principalAwardrecipient: () => void;
principalInvestigator: () => void;
privateChar: () => void;
processingMeta: () => void;
product: () => void;
pubDate: () => void;
pubDatenotavailable: () => void;
pubHistory: () => void;
pubId: () => void;
publisher: () => void;
publisherLoc: () => void;
publisherName: () => void;
question: () => void;
questionPreamble: () => void;
questionWrap: () => void;
questionWrapgroup: () => void;
rb: () => void;
ref: () => void;
refCount: () => void;
refList: (j: J, list: RefList) => Environment | undefined;
relatedArticle: () => void;
relatedObject: () => void;
resourceId: () => void;
resourceName: () => void;
resourceWrap: () => void;
response: () => void;
restrictedBy: () => void;
role: () => void;
roman: () => void;
root: (j: J, node: Root) => TexastContent;
rp: () => void;
rt: () => void;
ruby: () => void;
sansSerif: (j: J, node: Parents, parent: Parent) => TexastContent;
sc: (j: J, node: Parents, parent: Parent) => TexastContent;
season: () => void;
sec: (j: J, node: Parents) => TexastContent[];
secMeta: () => void;
see: () => void;
seeAlso: () => void;
selfUri: () => void;
series: () => void;
seriesText: () => void;
seriesTitle: () => void;
sig: () => void;
sigBlock: () => void;
size: () => void;
source: () => void;
speaker: () => void;
speech: () => void;
state: () => void;
statement: () => void;
std: () => void;
stdOrganization: () => void;
strike: () => void;
stringConf: () => void;
stringDate: () => void;
stringName: () => void;
styledContent: () => void;
sub: (j: J, node: Node) => TexastContent;
subArticle: () => void;
subjGroup: () => void;
subject: () => void;
subtitle: () => void;
suffix: () => void;
sup: (j: J, node: Node) => TexastContent;
supplement: () => void;
supplementaryMaterial: () => void;
supportDescription: () => void;
supportGroup: () => void;
supportSource: () => void;
surname: () => void;
table: (j: J, table: Table) => {
children: TexastContent[];
name: string;
type: string;
};
tableCount: () => void;
tableWrap: (j: J, node: TableWrap) => TexastContent;
tableWrapfoot: () => void;
tableWrapgroup: () => void;
target: () => void;
tbody: (j: J, parent: Node) => TexastContent[];
td: (j: J, node: Td) => TableCell;
term: () => void;
termHead: () => void;
texMath: () => void;
text: (j: J, node: Text) => TexastContent;
textualForm: () => void;
tfoot: () => void;
th: () => void;
thead: () => void;
timeStamp: () => void;
title: (j: J, parent: Node) => TexastContent[];
titleGroup: (j: J, node: Node) => TexastContent[];
tr: (j: J, node: Tr) => TexastContent;
transAbstract: () => void;
transSource: () => void;
transSubtitle: () => void;
transTitle: (j: J, node: Parents, parent: Parent) => TexastContent;
transTitlegroup: (j: J, node: Node) => TexastContent[];
underline: () => void;
underlineEnd: () => void;
underlineStart: () => void;
unstructuredKwdgroup: () => void;
uri: () => void;
verseGroup: () => void;
verseLine: () => void;
version: () => void;
volume: (j: J, node: Parents, parent: Parent) => TexastContent;
volumeId: () => void;
volumeIssuegroup: () => void;
volumeSeries: (j: J, node: Parents, parent: Parent) => TexastContent;
wordCount: () => void;
x: () => void;
xml: () => void;
xref: (j: J, node: Xref) => TexastContent;
year: () => void;
}
| Member | Type |
| :---------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| abbrev
| () => void
|
| abbrevJournaltitle
| () => void
|
| abstract
| () => void
|
| accessDate
| () => void
|
| ack
| () => void
|
| addrLine
| () => void
|
| address
| () => void
|
| aff
| () => void
|
| affAlternatives
| () => void
|
| altText
| () => void
|
| altTitle
| () => void
|
| alternatives
| () => void
|
| annotation
| () => void
|
| anonymous
| () => void
|
| answer
| () => void
|
| answerSet
| () => void
|
| app
| () => void
|
| appGroup
| () => void
|
| array
| () => void
|
| article
| (j
: J
, node
: Root
) => TexastContent
|
| articleCategories
| () => void
|
| articleId
| () => void
|
| articleMeta
| () => void
|
| articleTitle
| (j
: J
, node
: Parents
, parent
: Parent
) => TexastContent
|
| articleVersion
| () => void
|
| articleVersionalternatives
| () => void
|
| attrib
| () => void
|
| authorComment
| () => void
|
| authorNotes
| () => void
|
| awardDesc
| () => void
|
| awardGroup
| () => void
|
| awardId
| () => void
|
| awardName
| () => void
|
| back
| (j
: J
, parent
: Node
) => TexastContent
[] |
| bio
| () => void
|
| blockAlternatives
| () => void
|
| body
| (j
: J
, node
: Root
) => TexastContent
|
| bold
| (j
: J
, node
: Parents
, parent
: Parent
) => TexastContent
|
| boxedText
| () => void
|
| break
| () => void
|
| caption
| (j
: J
, node
: Parents
, parent
: Parent
) => TexastContent
|
| chapterTitle
| () => void
|
| chemStruct
| () => void
|
| chemStructwrap
| () => void
|
| citationAlternatives
| () => void
|
| city
| () => void
|
| code
| () => void
|
| col
| () => void
|
| colgroup
| () => void
|
| collab
| () => void
|
| collabAlternatives
| () => void
|
| command
| (j
: J
, node
: Parents
, parent
: Parent
) => TexastContent
|
| comment
| () => void
|
| compoundKwd
| () => void
|
| compoundKwdpart
| () => void
|
| compoundSubject
| () => void
|
| compoundSubjectpart
| () => void
|
| confAcronym
| () => void
|
| confDate
| () => void
|
| confLoc
| () => void
|
| confName
| () => void
|
| confNum
| () => void
|
| confSponsor
| () => void
|
| confTheme
| () => void
|
| conference
| () => void
|
| contrib
| () => void
|
| contribGroup
| (j
: J
, node
: Node
) => TexastContent
[] |
| contribId
| () => void
|
| contributedResourcegroup
| () => void
|
| copyrightHolder
| () => void
|
| copyrightStatement
| () => void
|
| copyrightYear
| () => void
|
| corresp
| () => void
|
| count
| () => void
|
| country
| () => void
|
| counts
| () => void
|
| customMeta
| () => void
|
| customMetagroup
| () => void
|
| dataTitle
| () => void
|
| date
| () => void
|
| dateIncitation
| () => void
|
| day
| () => void
|
| def
| () => void
|
| defHead
| () => void
|
| defItem
| () => void
|
| defList
| () => void
|
| degrees
| () => void
|
| disp-quote
| (j
: J
, node
: DispQuote
) => Environment
|
| dispFormula
| () => void
|
| dispFormulagroup
| () => void
|
| dispQuote
| () => void
|
| edition
| () => void
|
| elementCitation
| () => void
|
| elocationId
| () => void
|
| email
| () => void
|
| equationCount
| () => void
|
| era
| () => void
|
| etal
| () => void
|
| event
| () => void
|
| eventDesc
| () => void
|
| explanation
| () => void
|
| extLink
| (j
: J
, node
: ExtLink
) => { children
: CommandArg
[]; name
: string
; type
: string
; } |
| extendedBy
| () => void
|
| fax
| () => void
|
| fig
| (j
: J
, fig
: Fig
) => { children
: TexastContent
[]; name
: string
; type
: string
; } |
| figCount
| () => void
|
| figGroup
| () => void
|
| fixedCase
| () => void
|
| floatsGroup
| () => void
|
| fn
| (j
: J
, parent
: Node
) => TexastContent
[] |
| fnGroup
| (j
: J
, parent
: Node
) => TexastContent
[] |
| fpage
| () => void
|
| front
| (j
: J
, node
: Root
) => TexastContent
|
| frontStub
| () => void
|
| fundingGroup
| () => void
|
| fundingSource
| () => void
|
| fundingStatement
| () => void
|
| givenNames
| () => void
|
| glossary
| () => void
|
| glyphData
| () => void
|
| glyphRef
| () => void
|
| gov
| () => void
|
| graphic
| (j
: J
, node
: Graphic
) => { children
: (CommandArg
| { type
: string
; value
: string
; })[]; name
: string
; type
: string
; } |
| history
| () => void
|
| hr
| () => void
|
| indexTerm
| () => void
|
| indexTermrangeend
| () => void
|
| inlineFormula
| () => void
|
| inlineGraphic
| (j
: J
, node
: Graphic
) => { children
: (CommandArg
| { type
: string
; value
: string
; })[]; name
: string
; type
: string
; } |
| inlineMedia
| () => void
|
| inlineSupplementarymaterial
| () => void
|
| institution
| () => void
|
| institutionId
| () => void
|
| institutionWrap
| () => void
|
| instruction
| () => void
|
| isbn
| () => void
|
| issn
| () => void
|
| issnL
| () => void
|
| issue
| () => void
|
| issueId
| () => void
|
| issuePart
| () => void
|
| issueSponsor
| () => void
|
| issueSubtitle
| () => void
|
| issueTitle
| () => void
|
| issueTitlegroup
| (j
: J
, node
: Node
) => TexastContent
[] |
| italic
| (j
: J
, node
: Node
) => TexastContent
|
| journalId
| () => void
|
| journalMeta
| () => void
|
| journalSubtitle
| () => void
|
| journalTitle
| (j
: J
, node
: Parents
, parent
: Parent
) => TexastContent
|
| journalTitlegroup
| (j
: J
, node
: Node
) => TexastContent
[] |
| kwd
| () => void
|
| kwdGroup
| () => void
|
| label
| (j
: J
, node
: Parents
, parent
: Parent
) => TexastContent
|
| license
| () => void
|
| licenseP
| () => void
|
| list
| (j
: J
, list
: List
) => { children
: TexastContent
[]; name
: string
; type
: string
; } |
| listItem
| (j
: J
, item
: ListItem
) => TexastContent
|
| longDesc
| () => void
|
| lpage
| () => void
|
| media
| () => void
|
| metaName
| () => void
|
| metaValue
| () => void
|
| milestoneEnd
| () => void
|
| milestoneStart
| () => void
|
| mixedCitation
| () => void
|
| monospace
| () => void
|
| month
| () => void
|
| name
| () => void
|
| nameAlternatives
| () => void
|
| namedContent
| () => void
|
| nestedKwd
| () => void
|
| nlmCitation
| () => void
|
| note
| () => void
|
| notes
| () => void
|
| objectId
| () => void
|
| onBehalfof
| () => void
|
| openAccess
| () => void
|
| option
| () => void
|
| overline
| () => void
|
| overlineEnd
| () => void
|
| overlineStart
| () => void
|
| p
| (j
: J
, p
: P
) => TexastContent
|
| pageCount
| () => void
|
| pageRange
| () => void
|
| partTitle
| () => void
|
| patent
| () => void
|
| permissions
| () => void
|
| personGroup
| () => void
|
| phone
| () => void
|
| postalCode
| () => void
|
| prefix
| () => void
|
| preformat
| () => void
|
| price
| () => void
|
| principalAwardrecipient
| () => void
|
| principalInvestigator
| () => void
|
| privateChar
| () => void
|
| processingMeta
| () => void
|
| product
| () => void
|
| pubDate
| () => void
|
| pubDatenotavailable
| () => void
|
| pubHistory
| () => void
|
| pubId
| () => void
|
| publisher
| () => void
|
| publisherLoc
| () => void
|
| publisherName
| () => void
|
| question
| () => void
|
| questionPreamble
| () => void
|
| questionWrap
| () => void
|
| questionWrapgroup
| () => void
|
| rb
| () => void
|
| ref
| () => void
|
| refCount
| () => void
|
| refList
| (j
: J
, list
: RefList
) => Environment
| undefined
|
| relatedArticle
| () => void
|
| relatedObject
| () => void
|
| resourceId
| () => void
|
| resourceName
| () => void
|
| resourceWrap
| () => void
|
| response
| () => void
|
| restrictedBy
| () => void
|
| role
| () => void
|
| roman
| () => void
|
| root
| (j
: J
, node
: Root
) => TexastContent
|
| rp
| () => void
|
| rt
| () => void
|
| ruby
| () => void
|
| sansSerif
| (j
: J
, node
: Parents
, parent
: Parent
) => TexastContent
|
| sc
| (j
: J
, node
: Parents
, parent
: Parent
) => TexastContent
|
| season
| () => void
|
| sec
| (j
: J
, node
: Parents
) => TexastContent
[] |
| secMeta
| () => void
|
| see
| () => void
|
| seeAlso
| () => void
|
| selfUri
| () => void
|
| series
| () => void
|
| seriesText
| () => void
|
| seriesTitle
| () => void
|
| sig
| () => void
|
| sigBlock
| () => void
|
| size
| () => void
|
| source
| () => void
|
| speaker
| () => void
|
| speech
| () => void
|
| state
| () => void
|
| statement
| () => void
|
| std
| () => void
|
| stdOrganization
| () => void
|
| strike
| () => void
|
| stringConf
| () => void
|
| stringDate
| () => void
|
| stringName
| () => void
|
| styledContent
| () => void
|
| sub
| (j
: J
, node
: Node
) => TexastContent
|
| subArticle
| () => void
|
| subjGroup
| () => void
|
| subject
| () => void
|
| subtitle
| () => void
|
| suffix
| () => void
|
| sup
| (j
: J
, node
: Node
) => TexastContent
|
| supplement
| () => void
|
| supplementaryMaterial
| () => void
|
| supportDescription
| () => void
|
| supportGroup
| () => void
|
| supportSource
| () => void
|
| surname
| () => void
|
| table
| (j
: J
, table
: Table
) => { children
: TexastContent
[]; name
: string
; type
: string
; } |
| tableCount
| () => void
|
| tableWrap
| (j
: J
, node
: TableWrap
) => TexastContent
|
| tableWrapfoot
| () => void
|
| tableWrapgroup
| () => void
|
| target
| () => void
|
| tbody
| (j
: J
, parent
: Node
) => TexastContent
[] |
| td
| (j
: J
, node
: Td
) => TableCell
|
| term
| () => void
|
| termHead
| () => void
|
| texMath
| () => void
|
| text
| (j
: J
, node
: Text
) => TexastContent
|
| textualForm
| () => void
|
| tfoot
| () => void
|
| th
| () => void
|
| thead
| () => void
|
| timeStamp
| () => void
|
| title
| (j
: J
, parent
: Node
) => TexastContent
[] |
| titleGroup
| (j
: J
, node
: Node
) => TexastContent
[] |
| tr
| (j
: J
, node
: Tr
) => TexastContent
|
| transAbstract
| () => void
|
| transSource
| () => void
|
| transSubtitle
| () => void
|
| transTitle
| (j
: J
, node
: Parents
, parent
: Parent
) => TexastContent
|
| transTitlegroup
| (j
: J
, node
: Node
) => TexastContent
[] |
| underline
| () => void
|
| underlineEnd
| () => void
|
| underlineStart
| () => void
|
| unstructuredKwdgroup
| () => void
|
| uri
| () => void
|
| verseGroup
| () => void
|
| verseLine
| () => void
|
| version
| () => void
|
| volume
| (j
: J
, node
: Parents
, parent
: Parent
) => TexastContent
|
| volumeId
| () => void
|
| volumeIssuegroup
| () => void
|
| volumeSeries
| (j
: J
, node
: Parents
, parent
: Parent
) => TexastContent
|
| wordCount
| () => void
|
| x
| () => void
|
| xml
| () => void
|
| xref
| (j
: J
, node
: Xref
) => TexastContent
|
| year
| () => void
|
Defined in: src/lib/handlers/index.ts:29
boolean
Defined in: src/lib/types.ts:59
string
Defined in: src/lib/types.ts:76
boolean
Defined in: src/lib/types.ts:68
string
Defined in: src/lib/types.ts:66
Function
Signature`
(node: Node): string;
Parameters`
Name | Type |
---|---|
node |
Node |
Returns`
string
Defined in: src/lib/types.ts:81
boolean
Defined in: src/lib/types.ts:77
undefined
|boolean
Defined in: src/lib/types.ts:65
object
{
name: string;
options?: string[];
}
Member | Type |
---|---|
name |
string |
options ? |
string [] |
Defined in: src/lib/types.ts:71
Record
<string
,TexastContent
[]>
Defined in: src/lib/types.ts:78
null
|string
Defined in: src/lib/types.ts:60
object
Defined in: src/lib/types.ts:64
boolean
Defined in: src/lib/types.ts:62
string
Defined in: src/lib/types.ts:70
object
Defined in: src/lib/types.ts:56
number
Defined in: src/lib/types.ts:80
number
Defined in: src/lib/types.ts:63
string
[]
Defined in: src/lib/types.ts:69
number
Defined in: src/lib/types.ts:79
number
Defined in: src/lib/types.ts:75
string
Defined in: src/lib/types.ts:67
boolean
Defined in: src/lib/types.ts:61
Node
.Name
object
{
id?: string;
nameStyle?: NameTypeNameStyle;
specificUse?: string;
}
Member | Type |
---|---|
id ? |
string |
nameStyle ? |
NameTypeNameStyle |
specificUse ? |
string |
Defined in: libs/jast/jast/src/lib/jats.ts:6790
(
Text
|GivenNames
|Prefix
|Suffix
|Surname
)[]
Defined in: libs/jast/jast/src/lib/jats.ts:6796
Data
Information from the ecosystem.
Inherited from: UnistNode.data
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:27
"name"
Defined in: libs/jast/jast/src/lib/jats.ts:6789
Position
Location of a node in a source document. Must not be present if a node is generated.
Inherited from: UnistNode.position
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:33
"element"
Overrides: UnistNode.type
Defined in: libs/jast/jast/src/lib/jats.ts:6788
string
Defined in: src/lib/types.ts:39
boolean
Defined in: src/lib/types.ts:41
string
Defined in: src/lib/types.ts:34
Function
Signature`
(node: Node): string;
Parameters`
Name | Type |
---|---|
node |
Node |
Returns`
string
Defined in: src/lib/types.ts:46
boolean
Defined in: src/lib/types.ts:40
boolean
Defined in: src/lib/types.ts:32
object
{
name: string;
options?: string[];
}
Member | Type |
---|---|
name |
string |
options ? |
string [] |
Defined in: src/lib/types.ts:42
object
Defined in: src/lib/types.ts:31
"emph"
|"textit"
Defined in: src/lib/types.ts:38
boolean
Defined in: src/lib/types.ts:33
string
[]
Defined in: src/lib/types.ts:36
number
Defined in: src/lib/types.ts:37
string
Defined in: src/lib/types.ts:35
Parent
.Parent
(
Text
|Bold
|FixedCase
|Italic
|Monospace
|NamedContent
|Overline
|Roman
|Ruby
|SansSerif
|Sc
|Strike
|StyledContent
|Sub
|Sup
|Underline
|AbbrevJournaltitle
|Abbrev
|Def
|Abstract
|Label
|ObjectId
|P
|Sec
|Title
|AccessDate
|Ack
|KwdGroup
|RefList
|SubjGroup
|Address
|AddrLine
|City
|Country
|ExtLink
|Fax
|Institution
|InstitutionWrap
|Phone
|PostalCode
|State
|Uri
|Alternatives
|ChemStruct
|IndexTerm
|IndexTermrangeend
|InlineFormula
|InlineGraphic
|InlineMedia
|MilestoneEnd
|MilestoneStart
|PrivateChar
|AffAlternatives
|Aff
|Break
|Fn
|InlineSupplementarymaterial
|RelatedArticle
|RelatedObject
|Target
|Xref
|Array
|Code
|Graphic
|Media
|Preformat
|SupplementaryMaterial
|Table
|TexMath
|TextualForm
|AltText
|AltTitle
|Annotation
|Anonymous
|AnswerSet
|Answer
|Explanation
|Subtitle
|BlockAlternatives
|BoxedText
|ChemStructwrap
|DefList
|DispFormula
|DispFormulagroup
|DispQuote
|Fig
|FigGroup
|FnGroup
|Glossary
|List
|Question
|QuestionWrap
|QuestionWrapgroup
|Speech
|Statement
|TableWrap
|TableWrapgroup
|VerseGroup
|AppGroup
|App
|Permissions
|SecMeta
|Attrib
|LongDesc
|Tbody
|ArticleCategories
|SeriesText
|SeriesTitle
|ArticleId
|ArticleMeta
|Isbn
|ArticleVersion
|ArticleVersionalternatives
|AuthorNotes
|Conference
|ContribGroup
|Counts
|CustomMetagroup
|ElocationId
|Fpage
|FundingGroup
|History
|Issue
|IssueId
|IssuePart
|IssueSponsor
|IssueTitle
|IssueTitlegroup
|Lpage
|PageRange
|Product
|PubDate
|PubDatenotavailable
|PubHistory
|SelfUri
|Supplement
|SupportGroup
|TitleGroup
|TransAbstract
|Volume
|VolumeId
|VolumeIssuegroup
|VolumeSeries
|ArticleTitle
|Article
|Back
|Body
|FloatsGroup
|Front
|ProcessingMeta
|Response
|SubArticle
|AuthorComment
|Corresp
|AwardDesc
|AwardGroup
|AwardId
|AwardName
|FundingSource
|PrincipalAwardrecipient
|PrincipalInvestigator
|SupportSource
|Bio
|Notes
|SigBlock
|Caption
|ChapterTitle
|CitationAlternatives
|ElementCitation
|MixedCitation
|NlmCitation
|Colgroup
|Col
|CollabAlternatives
|Collab
|OnBehalfof
|Role
|Comment
|CompoundKwdpart
|CompoundKwd
|CompoundSubjectpart
|CompoundSubject
|ConfAcronym
|ConfDate
|ConfLoc
|ConfName
|ConfNum
|ConfSponsor
|ConfTheme
|Contrib
|ContribId
|Degrees
|Name
|NameAlternatives
|StringName
|ContributedResourcegroup
|ResourceGroup
|SupportDescription
|CopyrightHolder
|CopyrightStatement
|CopyrightYear
|Count
|EquationCount
|FigCount
|PageCount
|RefCount
|TableCount
|WordCount
|CustomMeta
|MetaName
|MetaValue
|DataTitle
|DateIncitation
|Day
|Era
|Month
|Season
|Year
|Date
|DefHead
|DefItem
|Term
|TermHead
|Edition
|Etal
|Gov
|Issn
|IssnL
|PartTitle
|Patent
|PersonGroup
|PubId
|PublisherLoc
|PublisherName
|Series
|Size
|Source
|Std
|StringDate
|TransSource
|TransTitle
|Version
|EventDesc
|Event
|ExtendedBy
|FrontStub
|JournalMeta
|FundingStatement
|OpenAccess
|GivenNames
|GlyphData
|GlyphRef
|Hr
|See
|SeeAlso
|InstitutionId
|IssueSubtitle
|TransTitlegroup
|JournalId
|JournalTitlegroup
|Publisher
|JournalSubtitle
|JournalTitle
|Kwd
|NestedKwd
|LicenseP
|Price
|License
|ListItem
|Prefix
|Suffix
|Surname
|TimeStamp
|Note
|Option
|OverlineEnd
|OverlineStart
|RestrictedBy
|QuestionPreamble
|Rb
|Ref
|ResourceName
|ResourceWrap
|ResourceId
|Rp
|Rt
|Sig
|Speaker
|StdOrganization
|StringConf
|Subject
|Tfoot
|Thead
|Tr
|TableWrapfoot
|Td
|Th
|TransSubtitle
|UnderlineEnd
|UnderlineStart
|UnstructuredKwdgroup
|VerseLine
|X
)[]
Overrides: UnistParent.children
Defined in: libs/jast/jast/src/lib/rejour.ts:25
Data
Information from the ecosystem.
Inherited from: UnistParent.data
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:27
Position
Location of a node in a source document. Must not be present if a node is generated.
Inherited from: UnistParent.position
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:33
string
The variant of a node.
Inherited from: UnistParent.type
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:22
Parent
.Root
(
Text
|Bold
|FixedCase
|Italic
|Monospace
|NamedContent
|Overline
|Roman
|Ruby
|SansSerif
|Sc
|Strike
|StyledContent
|Sub
|Sup
|Underline
|AbbrevJournaltitle
|Abbrev
|Def
|Abstract
|Label
|ObjectId
|P
|Sec
|Title
|AccessDate
|Ack
|KwdGroup
|RefList
|SubjGroup
|Address
|AddrLine
|City
|Country
|ExtLink
|Fax
|Institution
|InstitutionWrap
|Phone
|PostalCode
|State
|Uri
|Alternatives
|ChemStruct
|IndexTerm
|IndexTermrangeend
|InlineFormula
|InlineGraphic
|InlineMedia
|MilestoneEnd
|MilestoneStart
|PrivateChar
|AffAlternatives
|Aff
|Break
|Fn
|InlineSupplementarymaterial
|RelatedArticle
|RelatedObject
|Target
|Xref
|Array
|Code
|Graphic
|Media
|Preformat
|SupplementaryMaterial
|Table
|TexMath
|TextualForm
|AltText
|AltTitle
|Annotation
|Anonymous
|AnswerSet
|Answer
|Explanation
|Subtitle
|BlockAlternatives
|BoxedText
|ChemStructwrap
|DefList
|DispFormula
|DispFormulagroup
|DispQuote
|Fig
|FigGroup
|FnGroup
|Glossary
|List
|Question
|QuestionWrap
|QuestionWrapgroup
|Speech
|Statement
|TableWrap
|TableWrapgroup
|VerseGroup
|AppGroup
|App
|Permissions
|SecMeta
|Attrib
|LongDesc
|Tbody
|ArticleCategories
|SeriesText
|SeriesTitle
|ArticleId
|ArticleMeta
|Isbn
|ArticleVersion
|ArticleVersionalternatives
|AuthorNotes
|Conference
|ContribGroup
|Counts
|CustomMetagroup
|ElocationId
|Fpage
|FundingGroup
|History
|Issue
|IssueId
|IssuePart
|IssueSponsor
|IssueTitle
|IssueTitlegroup
|Lpage
|PageRange
|Product
|PubDate
|PubDatenotavailable
|PubHistory
|SelfUri
|Supplement
|SupportGroup
|TitleGroup
|TransAbstract
|Volume
|VolumeId
|VolumeIssuegroup
|VolumeSeries
|ArticleTitle
|Article
|Back
|Body
|FloatsGroup
|Front
|ProcessingMeta
|Response
|SubArticle
|AuthorComment
|Corresp
|AwardDesc
|AwardGroup
|AwardId
|AwardName
|FundingSource
|PrincipalAwardrecipient
|PrincipalInvestigator
|SupportSource
|Bio
|Notes
|SigBlock
|Caption
|ChapterTitle
|CitationAlternatives
|ElementCitation
|MixedCitation
|NlmCitation
|Colgroup
|Col
|CollabAlternatives
|Collab
|OnBehalfof
|Role
|Comment
|CompoundKwdpart
|CompoundKwd
|CompoundSubjectpart
|CompoundSubject
|ConfAcronym
|ConfDate
|ConfLoc
|ConfName
|ConfNum
|ConfSponsor
|ConfTheme
|Contrib
|ContribId
|Degrees
|Name
|NameAlternatives
|StringName
|ContributedResourcegroup
|ResourceGroup
|SupportDescription
|CopyrightHolder
|CopyrightStatement
|CopyrightYear
|Count
|EquationCount
|FigCount
|PageCount
|RefCount
|TableCount
|WordCount
|CustomMeta
|MetaName
|MetaValue
|DataTitle
|DateIncitation
|Day
|Era
|Month
|Season
|Year
|Date
|DefHead
|DefItem
|Term
|TermHead
|Edition
|Etal
|Gov
|Issn
|IssnL
|PartTitle
|Patent
|PersonGroup
|PubId
|PublisherLoc
|PublisherName
|Series
|Size
|Source
|Std
|StringDate
|TransSource
|TransTitle
|Version
|EventDesc
|Event
|ExtendedBy
|FrontStub
|JournalMeta
|FundingStatement
|OpenAccess
|GivenNames
|GlyphData
|GlyphRef
|Hr
|See
|SeeAlso
|InstitutionId
|IssueSubtitle
|TransTitlegroup
|JournalId
|JournalTitlegroup
|Publisher
|JournalSubtitle
|JournalTitle
|Kwd
|NestedKwd
|LicenseP
|Price
|License
|ListItem
|Prefix
|Suffix
|Surname
|TimeStamp
|Note
|Option
|OverlineEnd
|OverlineStart
|RestrictedBy
|QuestionPreamble
|Rb
|Ref
|ResourceName
|ResourceWrap
|ResourceId
|Rp
|Rt
|Sig
|Speaker
|StdOrganization
|StringConf
|Subject
|Tfoot
|Thead
|Tr
|TableWrapfoot
|Td
|Th
|TransSubtitle
|UnderlineEnd
|UnderlineStart
|UnstructuredKwdgroup
|VerseLine
|X
|Instruction
|Doctype
)[]
Overrides: UnistParent.children
Defined in: libs/jast/jast/src/lib/rejour.ts:20
Data
Information from the ecosystem.
Inherited from: UnistParent.data
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:27
Position
Location of a node in a source document. Must not be present if a node is generated.
Inherited from: UnistParent.position
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:33
"root"
Overrides: UnistParent.type
Defined in: libs/jast/jast/src/lib/rejour.ts:19
Nodes containing a value.
Value
=unknown
Specific value type of Literal.value such asstring
forText
nodeTData
extendsobject
=Data
Node
<TData
>.TexastLiteral
TData
Information from the ecosystem.
Inherited from: Node.data
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:27
Position
Location of a node in a source document. Must not be present if a node is generated.
Inherited from: Node.position
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:33
string
The variant of a node.
Inherited from: Node.type
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:22
Value
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:113
Parent
.TexastParent
Overrides: UnistParent.children
Defined in: libs/texast/texast/src/lib/texast.ts:106
Data
Information from the ecosystem.
Inherited from: UnistParent.data
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:27
Position
Location of a node in a source document. Must not be present if a node is generated.
Inherited from: UnistParent.position
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:33
string
The variant of a node.
Inherited from: UnistParent.type
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:22
TexastParent
.TexastRoot
Inherited from: TexastParent.children
Defined in: libs/texast/texast/src/lib/texast.ts:106
Data
Information from the ecosystem.
Inherited from: TexastParent.data
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:27
Position
Location of a node in a source document. Must not be present if a node is generated.
Inherited from: TexastParent.position
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:33
"root"
The variant of a node.
Overrides: TexastParent.type
Defined in: libs/texast/texast/src/lib/texast.ts:86
Nodes containing a value.
TexastLiteral
.Text
Data
Information from the ecosystem.
Inherited from: TexastLiteral.data
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:27
Position
Location of a node in a source document. Must not be present if a node is generated.
Inherited from: TexastLiteral.position
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:33
"text"
The variant of a node.
Overrides: TexastLiteral.type
Defined in: libs/jast/jast/src/lib/jats.ts:43
string
Overrides: TexastLiteral.value
Defined in: libs/jast/jast/src/lib/jats.ts:44
JastProperties
Defined in: src/lib/types.ts:29
ValuesType
<documentMap
>
Defined in: libs/jast/jast/src/lib/jats.ts:13710
Extract
<Content
, {type
:"element"
; }>
Defined in: libs/jast/jast/src/lib/jats.ts:13711
Function
(j: J, node: any, parent?: Parent): TexastContent | TexastContent[] | void;
Name | Type |
---|---|
j |
J |
node |
any |
parent? |
Parent |
TexastContent
| TexastContent
[] | void
Defined in: src/lib/types.ts:49
Defined in: src/lib/types.ts:106
Function
(
node: Node,
type: string,
props?: Attributes,
children?: string | TexastContent[]): TexastContent;
| Name | Type |
| :---------- | :------------------------------------ | --------------------------------------------- |
| node
| Node
|
| type
| string
|
| props?
| Attributes
|
| children?
| string
| TexastContent
[] |
Defined in: src/lib/types.ts:84
<
TNode
>Function
TNode
extendsTexastContent
=TexastContent
(
node: Node,
type: Pick<TNode, "type">,
props?: Attributes,
children?: Pick<TNode, "children">): TNode;
Name | Type |
---|---|
node |
Node |
type |
Pick <TNode , "type" > |
props? |
Attributes |
children? |
Pick <TNode , "children" > |
TNode
Defined in: src/lib/types.ts:97
Function
(node: Node, type: string, children?: string | TexastContent[]): TexastContent;
| Name | Type |
| :---------- | :------------------------ | --------------------------------------------- |
| node
| Node
|
| type
| string
|
| children?
| string
| TexastContent
[] |
Defined in: src/lib/types.ts:91
jast Node
Defined in: src/lib/types.ts:26
Defined in: src/lib/types.ts:122
TopLevelDocumentContent
|PreambleContent
|AlignmentContent
|MathContent
|CommandContent
|TexastParagraphContent
|CommandArg
|ListContent
|Text
|Comment
|TabularContent
|TableRowContent
Defined in: libs/texast/texast/src/lib/texast.ts:32
Text
|InlineMath
|Command
|Comment
Defined in: libs/texast/texast/src/lib/texast.ts:75
GPL-3.0-or-later © Thomas F. K. Jorna