Hi!
I'm the element coming from the right of the browser.
Click the close icon or anywhere on the overlay to close me.
>\">", 44 | instagram: "
>/captioned\">", 45 | codepen: "", 46 | defaultMarkup: "" 47 | }; 48 | var defaultParsers = { 49 | paragraph: function paragraph(data, config) { 50 | return "
").concat(data.text, "
"); 51 | }, 52 | header: function header(data) { 53 | return ""); 70 | }, 71 | table: function table(data) { 72 | var rows = data.content.map(function (row) { 73 | return "").concat(data.text, "
").concat(data.caption, "
").concat(markup, "
");
108 | },
109 | raw: function raw(data) {
110 | return data.html;
111 | },
112 | delimiter: function delimiter(data) {
113 | return ">\">", 41 | instagram: "
>/captioned\">", 42 | codepen: "", 43 | defaultMarkup: "" 44 | }; 45 | var defaultParsers = { 46 | paragraph: function paragraph(data, config) { 47 | return "
").concat(data.text, "
"); 48 | }, 49 | header: function header(data) { 50 | return ""); 67 | }, 68 | table: function table(data) { 69 | var rows = data.content.map(function (row) { 70 | return "").concat(data.text, "
").concat(data.caption, "
").concat(markup, "
");
105 | },
106 | raw: function raw(data) {
107 | return data.html;
108 | },
109 | delimiter: function delimiter(data) {
110 | return ">`, 38 | 39 | instagram: `
>`, 40 | 41 | codepen: ``, 42 | 43 | defaultMarkup: ``, 44 | }; 45 | 46 | var defaultParsers = { 47 | paragraph: function(data, config) { 48 | return `
${data.text}
`; 49 | }, 50 | 51 | header: function(data) { 52 | return ``; 70 | }, 71 | 72 | table: function(data) { 73 | const rows = data.content.map((row) => { 74 | return `${data.text}
${data.caption}
${markup}
`;
114 | },
115 | raw: function (data) {
116 | return data.html;
117 | },
118 | delimiter: function (data) {
119 | return "${data.text}
`; 6 | }, 7 | 8 | header: function(data) { 9 | return ``; 27 | }, 28 | 29 | table: function(data) { 30 | const rows = data.content.map((row) => { 31 | return `${data.text}
${data.caption}
${markup}
`;
71 | },
72 | raw: function (data) {
73 | return data.html;
74 | },
75 | delimiter: function (data) {
76 | return ">`, 36 | 37 | instagram: `
>`, 38 | 39 | codepen: ``, 40 | 41 | defaultMarkup: ``, 42 | }; -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- 1 | const testObject = require("./testData.json"); 2 | const edjsParser = require("../build/Parser.node"); 3 | 4 | const parser = new edjsParser({ 5 | embed: { useProvidedLength: false }, 6 | quote: { applyAlignment: true }, 7 | }, {}, { 8 | youtube: '
I'm the element coming from the right of the browser.
Click the close icon or anywhere on the overlay to close me.
Dark arts and crafts!
"
168 | }
169 | }
170 | ],
171 | "version": "2.18.0"
172 | }
--------------------------------------------------------------------------------