Commit Graph

64 Commits (9d1f6d0ac9e59b09cb3cb1caedb703a2a65b93cc)

Author SHA1 Message Date
trivernis b599bf5e37
Fix warnings and update Readme
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis e5d021a571
Hide pdf behind features flag
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 2f16c69c39
Add chromium based pdf support
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 72d0e0a215
Resolve conflict between glossary and striked text parsing
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 04e1e30fef
Fix MathJax Integration
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 1a4ec92aff
Add SmartArrows
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis e8cdbc3b06
Add glossary implementation
Glossary entries can be defined with `~KEY` for the
short form and `~~KEY` for the long form.
If a glossary entry is referenced for the first time it will always be
rendered as the long form.
Glossary entries can be defined in a toml file (default is glossary.toml)
similar to bibliography.

Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 9424d04c37
Add option to turn off embedding of images
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 98f64270f3
Update bibliographix and add bib error messages
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis a226001b1c
Add progress bar to downloader
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 234b11ee93
Change downloading of images to be parallel
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 609bc18d7f
Fix open options for written file
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis f5bf361795
Add metadata file imports and import types
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 09bbabfdc2
Change html rendering to use a writer for memory efficiency
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis ee822738b4
Integrate Bibliographix
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 801268b804
Replace bibliography handling with bibliographix
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 53123705ac
Change inline formatting to accept multiple inline types
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 4cce555310 Add lang to html tag and charset to head 4 years ago
trivernis 8fe2c47739 Fix image description and paths 4 years ago
trivernis 4d27e054da Add html character escape codes 4 years ago
trivernis b835f900eb Fix last line of the file not being parsed 4 years ago
trivernis 038a9ef554 Change images to be embedded as base64 4 years ago
trivernis 8715ca7b41 Add custom stylesheet imports 4 years ago
trivernis 1af43f4ff0 Fix checkboxes, escapes and inline math
- Fix empty checkboxes not being displayed when line starts with them
- Fix inline math consunming following char
- Fix single escape characters being displayed
4 years ago
trivernis 291da3a72b Add MathJax for fancier Math display 4 years ago
trivernis d292dd6f32 Add AsciiMath inline and block parsing 4 years ago
trivernis 06ee81cc15 Add snekdown logo to README 4 years ago
trivernis 47e6490203 Change url to allow inline formatting for description 4 years ago
trivernis 108bcb26d5 Fix word break 4 years ago
trivernis dd65c65c9d Refactor project folder and file structure
- add folders for references and utils as well as elements
- extract the line and inline parsing of the parser into separate traits
4 years ago
trivernis 815bd26e51 Refactor template variable collecting and freezing
This change extracts template variable collectiong and freezing into
a different module to keep the elements module clean.
This commit also changes all Mutex'es to RwLocks to get better performance
with read-only locking (the increase is measurable even with small files).
4 years ago
trivernis 792d991fb2 Improve template syntax
Templates are still wip. Currently they can be used in metadata
by starting the value with %
5 years ago
trivernis 8498f4c66c Change bibliography to an easier concept
Definitions are similar to the markdown key-url definitions:
[key]:url
[key]:[metadata]

References work like some markdown-footnote concepts:

[^key]
5 years ago
trivernis 6bf51b91f0 Add color formatting 5 years ago
trivernis d5e2db3e1f Add emoji parsing 5 years ago
trivernis 3c88632548 Improve section handling and add Checkboxes
Huge improvements to section handling by postprocessing elements and reordering them,
mergin with imports and so on to get a one-document output with no nesting errors.
5 years ago
trivernis 4af6ab9487 Add Superscript and update Readme with Roadmap 5 years ago
Trivernis add37e8832 Fix text color in html rendering 5 years ago
trivernis 8daa6bb70c Add link rendering for references 5 years ago
trivernis 5dacef285c Change string templates to {{name}} templates 5 years ago
trivernis e2f0d88acf Add bibliography, references and settings placeholders 5 years ago
trivernis cfc02b8da7 Add centered text 5 years ago
trivernis ba7fd40f92 Encapsulate inline parsing
- Rename Inline stuff to Line
- Rename SubText stuff to Inline
5 years ago
trivernis 7d910301d6 Improve parsing performance 5 years ago
trivernis 018960db0e Add hiding of sections with metadata 5 years ago
trivernis 0d6eb1d1a7 Add metadata syntax with formatting 5 years ago
trivernis e1f1140aeb Add Anchor element for references to items 5 years ago
trivernis 8afdfc71d6 Fix doc rendering for imports 5 years ago
trivernis 1c47888a05 Add placeholders 5 years ago
trivernis 56ab594009 Fix section nesting order
With this fix the sections can be nested in any way possible
5 years ago