Commit Graph

82 Commits (main)

Author SHA1 Message Date
trivernis c7694d39e0
Change path of temporary file to be absolute
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 0495855d91
Fix problems with creating temp file for pdf rendering
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 0e608e255a
Add fetch feature to headless_chromium dep
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 6ebc7cc766
Update Copyright in Source files
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 1e46274003
Add reference anchors and update README
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis f709465eba
Fix windows lineending
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 4c0d4c560c
Fix mathjax include
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis e50d73a880
Fix quote text alignment
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis d5df0b6f05
Change whitespace behaviour
A single linebreak will be ignored in plain text while a double line
break will be converted to a single linebreak. All following
linebreaks are taken as-is and rendered as normal linebreaks.
(Fixes #13)

Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 8747c8c41a
Add metadata embedding in html
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis f6e4bb86da
Hotfix pdf renderer
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis d82c43e5a3
Add magic dark theme and rename formatting config to style
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 097eae5f4e
Add theme config option
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis d84b0d86dd
Change settings format
Settings are now stored in a specific format defined in the settings
module. The Manifest.toml file will be loaded by default. Further
config files can be imported with the default file import syntax.

Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 63ea60b10a
Add conversion of images when configured
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 53c4818f9d
Change input syntax and add cache storage handler
- input syntax changed to <subcommand> <options...>
- Added clear-cache subcommand
- CacheStorage now handles the caching of files

Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis d42821a6eb
Fix image href pointing to non existent files
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis f2b154b7c3
Expose chromium pdf options to config
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis b599bf5e37
Fix warnings and update Readme
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis e5d021a571
Hide pdf behind features flag
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 2f16c69c39
Add chromium based pdf support
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 72d0e0a215
Resolve conflict between glossary and striked text parsing
Signed-off-by: trivernis <trivernis@protonmail.com>
3 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 %
4 years ago