144bfb2ba7
This commit introduces a complete overhaul of the application, replacing the previous simple Markdown editor with a powerful, Google Docs-style editor with a live preview and ODT export. The new features include: - A new three-pane UI with a Markdown editor, a live preview, and a styles panel. - A powerful styling engine that allows users to create, edit, and apply custom styles to the document. - A persistent storage mechanism for styles using a JSON file. - Support for advanced Markdown features, including code blocks and blockquotes. - A hyperlinked table of contents that is automatically generated from the headings in the document. - Auto-captioning for tables and images. - Pagination for large tables. - Secure image embedding with a domain whitelist and size limits to prevent SSRF and DoS attacks. - An improved live preview that correctly renders multi-line Markdown elements.
54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
JSON
{
|
|
"Normal": {
|
|
"font_size": "12pt",
|
|
"font_family": "Liberation Serif",
|
|
"margin_bottom": "0.1in"
|
|
},
|
|
"Heading 1": {
|
|
"font_size": "18pt",
|
|
"font_family": "Liberation Sans",
|
|
"font_weight": "bold",
|
|
"margin_bottom": "0.2in"
|
|
},
|
|
"Heading 2": {
|
|
"font_size": "14pt",
|
|
"font_family": "Liberation Sans",
|
|
"font_weight": "bold",
|
|
"margin_bottom": "0.15in"
|
|
},
|
|
"Caption": {
|
|
"font_size": "10pt",
|
|
"font_family": "Liberation Serif",
|
|
"font_style": "italic",
|
|
"text_align": "center"
|
|
},
|
|
"Code": {
|
|
"font_family": "Courier New",
|
|
"font_size": "10pt",
|
|
"background_color": "#f0f0f0",
|
|
"padding": "10px"
|
|
},
|
|
"Quote": {
|
|
"font_style": "italic",
|
|
"border_left": "3px solid #ccc",
|
|
"padding_left": "10px"
|
|
},
|
|
"Test Style": {
|
|
"font-family": "Comic Sans MS",
|
|
"font-size": "20pt",
|
|
"color": "#ff00ff"
|
|
},
|
|
"My New Style": {
|
|
"font-family": "Georgia",
|
|
"font-size": "14pt",
|
|
"font-weight": "",
|
|
"font-style": "",
|
|
"text-align": "",
|
|
"color": "blue",
|
|
"background-color": "",
|
|
"padding": "",
|
|
"border-left": "",
|
|
"padding-left": "",
|
|
"margin-bottom": ""
|
|
}
|
|
} |