Merge pull request #9 from Trivernis/develop

Develop
pull/17/head v0.32.0
Trivernis 4 years ago committed by GitHub
commit e24cc4b0f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,7 +27,7 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-cargo- ${{ runner.os }}-cargo-
- name: Build - name: Build
run: cargo build --verbose run: cargo build --verbose --all-features
- name: Run tests - name: Run tests
run: cargo test --verbose run: cargo test --verbose --all-features

2
Cargo.lock generated

@ -2264,7 +2264,7 @@ checksum = "ae524f056d7d770e174287294f562e95044c68e88dec909a00d2094805db9d75"
[[package]] [[package]]
name = "snekdown" name = "snekdown"
version = "0.31.1" version = "0.32.0"
dependencies = [ dependencies = [
"asciimath-rs", "asciimath-rs",
"base64 0.12.3", "base64 0.12.3",

@ -1,6 +1,6 @@
[package] [package]
name = "snekdown" name = "snekdown"
version = "0.31.1" version = "0.32.0"
authors = ["trivernis <trivernis@protonmail.com>"] authors = ["trivernis <trivernis@protonmail.com>"]
edition = "2018" edition = "2018"
license-file = "LICENSE" license-file = "LICENSE"

@ -36,7 +36,8 @@ pub fn render_to_pdf(document: Document) -> PdfRenderingResult<Vec<u8>> {
.truncate(true) .truncate(true)
.open(file_path)?, .open(file_path)?,
); );
let mut html_writer = HTMLWriter::new(Box::new(writer)); let mut html_writer =
HTMLWriter::new(Box::new(writer), document.config.lock().style.theme.clone());
document.to_html(&mut html_writer)?; document.to_html(&mut html_writer)?;
log::info!("Successfully rendered temporary html file!"); log::info!("Successfully rendered temporary html file!");
html_writer.flush() html_writer.flush()

Loading…
Cancel
Save