Skip to content

Commit

Permalink
Merge pull request #36 from jaredh159/non-strict-wasm-for-now
Browse files Browse the repository at this point in the history
run wasm in non-strict mode (for now)
  • Loading branch information
jaredh159 authored Dec 30, 2024
2 parents 81dcf6a + f8aadc9 commit 9654db7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dr-html-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ use wasm_bindgen::prelude::*;
pub fn convert(adoc: &str, timestamp: f64) -> String {
let bump = &Bump::new();
let mut parser = Parser::from_str(adoc, SourceFile::Tmp, bump);
parser.apply_job_settings(JobSettings::embedded());
let mut job_settings = JobSettings::embedded();
job_settings.strict = false;
parser.apply_job_settings(job_settings);
parser.provide_timestamps(timestamp as u64, None, None);
let result = parser.parse();
match result {
Expand Down
Binary file modified web-playground/public/wasm/dr_html_wasm_bg.wasm
Binary file not shown.

0 comments on commit 9654db7

Please sign in to comment.