If the contents of the editor and preview window are 'too large', the editor will not generate asciidoc code.
PayloadTooLargeError: request entity too large at readStream (/home/runner/asciiedit/node_modules/raw-body/index.js:156:17) at getRawBody (/home/runner/asciiedit/node_modules/raw-body/index.js:109:12) at read (/home/runner/asciiedit/node_modules/body-parser/lib/read.js:79:3) at textParser (/home/runner/asciiedit/node_modules/body-parser/lib/types/text.js:86:5) at Layer.handle [as handle_request] (/home/runner/asciiedit/node_modules/express/lib/router/layer.js:95:5) at next (/home/runner/asciiedit/node_modules/express/lib/router/route.js:144:13) at Route.dispatch (/home/runner/asciiedit/node_modules/express/lib/router/route.js:114:3) at Layer.handle [as handle_request] (/home/runner/asciiedit/node_modules/express/lib/router/layer.js:95:5) at /home/runner/asciiedit/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/home/runner/asciiedit/node_modules/express/lib/router/index.js:346:12)
The nature of this error is intermittent, and may be related to how asciidoc handles docbooks and headers.
The 'Save to Code' function tries to convert the existing text and styles into code, but sometimes header conflicts, such as expected header levels versus whether or not the target "file" is a docbook prevents the update from being saved into asciidoc code.
Related error message:
asciidoctor: ERROR: <stdin>: line 1514: level 0 sections can only be used when doctype is book asciidoctor: WARNING: <stdin>: line 1514: id assigned to section already in use: loans-web-journey-reference-retail asciidoctor: ERROR: <stdin>: line 3025: level 0 sections can only be used when doctype is book asciidoctor: WARNING: <stdin>: line 3025: id assigned to section already in use: loans-web-journey-reference-retail
Add some formatting and editor buttons for the Preview editor window. This includes some text formatting for the text editor, such as Bold, Italicize, Unordered list, Ordered list, Code, Anchor Link, etc.