Commit Graph

119 Commits (fd23a49e493a3601baeec28051802703b8f7452b)

Author SHA1 Message Date
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 c6e2a2560a Update asciimath-rs version 4 years ago
trivernis 6739851aba Fix problems with missing newline at eof 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 b81f9f03d6 Update asciimath-rs version 4 years ago
trivernis 291da3a72b Add MathJax for fancier Math display 4 years ago
trivernis 9584cfaed2 Update asciimath-rs version 4 years ago
trivernis 7be3e281a7 Update version 4 years ago
trivernis d292dd6f32 Add AsciiMath inline and block parsing 4 years ago
trivernis 5f7d9f8de1 Fix image short syntax 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 63c060e0a2 Cleanup after switching to charred 4 years ago
trivernis cb327180c6 Add charred for char state operations 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 392ee83a4a Change path format from String to PathBof 4 years ago
trivernis 63345854a0 Add optional comma to metadata 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 1eea0e3b86 Switch to internal BufRead for parsing 5 years ago
trivernis fc1d1ccb56 Add automated parsing tests 5 years ago
trivernis cb8f469853 Fix EOF handling 5 years ago
trivernis 86ff2e17d1 Add inlining for some charstate functions 5 years ago
trivernis a320363764 Add live watching and rendering of files 5 years ago
trivernis 6bf51b91f0 Add color formatting 5 years ago
trivernis d5e2db3e1f Add emoji parsing 5 years ago
trivernis 70e5cb68ea Switch to colored because termion isn't supported on windows 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 b2b535c22b Update Cargo.lock 5 years ago
trivernis 4af6ab9487 Add Superscript and update Readme with Roadmap 5 years ago
Trivernis 51e8fded75 Update lockfile 5 years ago
Trivernis 15e187c625 Change lockfile 5 years ago
trivernis fddf89c4c4 Increase crate version 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 e80ecea6cf Add options to placeholders 5 years ago
trivernis ba7fd40f92 Encapsulate inline parsing
- Rename Inline stuff to Line
- Rename SubText stuff to Inline
5 years ago
trivernis c4485e1394 Improve readability by encapsulating char operations
- Add charstate module with CharStateMachine trait for char operations
5 years ago
trivernis 7d910301d6 Improve parsing performance 5 years ago
trivernis 5dc26612d6 Fix metadata parsing for images 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 7319907c2e Increase crate version 5 years ago
trivernis 345bde509c Fix quotes and monospace
- Fix parsing of empty quote lines
- Fix style of monospace
5 years ago
trivernis 03ebed6277 Improve rendering performance 5 years ago
trivernis 9e1d13bce5 Fix escapes of highlighted code 5 years ago
trivernis 3b75ad10dc Improve code block rendering
- Add HTML escapes
- Make highlighter static
5 years ago
trivernis cdb86098c2 Add syntax highlighting using syntect 5 years ago
trivernis 5efb355a06 Fix import parsing 5 years ago
trivernis d43410de70 Fix table parsing 5 years ago
trivernis ec6148797c Fix style and add html escaping 5 years ago
trivernis d815ae9a20 Add minifier for html and improve style 5 years ago
trivernis 72010bebb8 Add colored error message 5 years ago
trivernis 4b12391ff4 Change name of cargo package 5 years ago
trivernis 302669044f Add cli options 5 years ago
trivernis 15b1a1e6b7 Add multithreaded import parsing 5 years ago
trivernis 7b901ee984 Remove url short syntax and update Readme 5 years ago
trivernis e32073fb4b Change image syntax 5 years ago
trivernis e9e7dca783 Add tokens and started with the parsing 5 years ago