aboutsummaryrefslogtreecommitdiff
path: root/src/xml.rs
Commit message (Collapse)AuthorAgeFilesLines
* Create a function to modify OPF contentsA Farzat30 hours1-1/+45
| | | | The main purpose for now is to add the description.
* Add newline between wrapper and chapter contentA Farzat35 hours1-0/+2
| | | | | This makes it easier to identify diff lines caused by quick_xml from those of the wrapper.
* Avoid using string buffers when modifying chaptersA Farzat2 days1-27/+35
| | | | | This saves on memory. Bytes are read from the file as needed, and written to zip as soon as they are ready.
* Fix attributes of more element types with linksA Farzat2 days1-3/+16
|
* Prevent processed_fragment from escapingA Farzat2 days1-4/+5
| | | | | | This is done by not including it in the xml! macro in the first place. Instead, it is inserted later by using format!. This is because ogrim does not support injecting raw xml yet (to my knowledge).
* Replace format! macro with xml! where xml is usedA Farzat2 days1-18/+37
| | | | | This commit does not produce a working version, as processed_fragment is escaped by xml!. This needs to be resolved.
* Fix chapter contents to proper xmlA Farzat3 days1-0/+137
Change resource URLs using attribute matching (only img src for now, should add more later). Add respective stylesheets to chapters.