-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathArticleModelPackage.js
80 lines (79 loc) · 3.2 KB
/
ArticleModelPackage.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import Abstract from './Abstract'
import Affiliation from './Affiliation'
import Article from './Article'
import ArticleRef from './ArticleRef'
import BlockFormula from './BlockFormula'
import BlockQuote from './BlockQuote'
import Body from './Body'
import Bold from './Bold'
import BookRef from './BookRef'
import Break from './Break'
import ChapterRef from './ChapterRef'
import ConferencePaperRef from './ConferencePaperRef'
import CustomAbstract from './CustomAbstract'
import MetadataField from './MetadataField'
import DataPublicationRef from './DataPublicationRef'
import ExternalLink from './ExternalLink'
import Figure from './Figure'
import FigurePanel from './FigurePanel'
import Footnote from './Footnote'
import Funder from './Funder'
import Graphic from './Graphic'
import Group from './Group'
import Heading from './Heading'
import InlineFormula from './InlineFormula'
import InlineGraphic from './InlineGraphic'
import Italic from './Italic'
import Keyword from './Keyword'
import JournalArticleRef from './JournalArticleRef'
import List from './List'
import ListItem from './ListItem'
import MagazineArticleRef from './MagazineArticleRef'
import Metadata from './Metadata'
import Monospace from './Monospace'
import NewspaperArticleRef from './NewspaperArticleRef'
import Overline from './Overline'
import Paragraph from './Paragraph'
import PatentRef from './PatentRef'
import Permission from './Permission'
import Person from './Person'
import Preformat from './Preformat'
import RefContrib from './RefContrib'
import Reference from './Reference'
import ReportRef from './ReportRef'
import SmallCaps from './SmallCaps'
import SoftwareRef from './SoftwareRef'
import StrikeThrough from './StrikeThrough'
import Subject from './Subject'
import Subscript from './Subscript'
import Superscript from './Superscript'
import SupplementaryFile from './SupplementaryFile'
import Table from './Table'
import TableCell from './TableCell'
import TableFigure from './TableFigure'
import TableRow from './TableRow'
import ThesisRef from './ThesisRef'
import Underline from './Underline'
import UnsupportedNode from './UnsupportedNode'
import UnsupportedInlineNode from './UnsupportedInlineNode'
import WebpageRef from './WebpageRef'
import Xref from './Xref'
export default {
name: 'article.model',
configure (config) {
;[
Abstract, Article, ArticleRef,
BlockFormula, BlockQuote, Body, Bold, BookRef, Break, ChapterRef, ConferencePaperRef,
CustomAbstract, MetadataField, DataPublicationRef, ExternalLink, Figure, FigurePanel,
Footnote, Funder, Graphic, Group, Heading, InlineFormula, InlineGraphic, Italic,
Keyword, JournalArticleRef, List, ListItem, MagazineArticleRef, Metadata, Monospace,
NewspaperArticleRef, Affiliation, Overline, Paragraph, PatentRef, Permission,
Person, Preformat, RefContrib, Reference, ReportRef, SmallCaps, SoftwareRef,
StrikeThrough, Subject, Subscript, Superscript, SupplementaryFile, Table, TableCell,
TableFigure, TableRow, ThesisRef, Underline, WebpageRef, Xref
].forEach(node => config.addNode(node))
// additionally register nodes that are used to wrap unsupported XML elements
config.addNode(UnsupportedNode)
config.addNode(UnsupportedInlineNode)
}
}