MCPcopy Create free account
hub / github.com/TruthHun/BookStack / Styles

Function Styles

static/word2md/mammoth.browser.js:2038–2053  ·  view source on GitHub ↗
(paragraphStyles, characterStyles, tableStyles, numberingStyles)

Source from the content-addressed store, hash-verified

2036exports.defaultStyles = new Styles({}, {});
2037
2038function Styles(paragraphStyles, characterStyles, tableStyles, numberingStyles) {
2039 return {
2040 findParagraphStyleById: function(styleId) {
2041 return paragraphStyles[styleId];
2042 },
2043 findCharacterStyleById: function(styleId) {
2044 return characterStyles[styleId];
2045 },
2046 findTableStyleById: function(styleId) {
2047 return tableStyles[styleId];
2048 },
2049 findNumberingStyleById: function(styleId) {
2050 return numberingStyles[styleId];
2051 }
2052 };
2053}
2054
2055Styles.EMPTY = new Styles({}, {}, {}, {});
2056

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected