We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab38c50 commit 60ee3edCopy full SHA for 60ee3ed
crates/wasm-qmd-parser/src/lib.rs
@@ -83,9 +83,10 @@ fn pandoc_to_qmd(doc: &quarto_markdown_pandoc::pandoc::Pandoc) -> Result<String,
83
}
84
85
#[wasm_bindgen]
86
-pub fn parse_qmd(input: JsValue) -> JsValue {
+pub fn parse_qmd(input: JsValue, include_resolved_locations: JsValue) -> JsValue {
87
let input = as_string(&input, "input");
88
- let json = wasm_entry_points::parse_qmd(input.as_bytes());
+ let include_resolved_locations = as_string(&include_resolved_locations, "input") == "true";
89
+ let json = wasm_entry_points::parse_qmd(input.as_bytes(), include_resolved_locations);
90
JsValue::from_str(&json)
91
92
0 commit comments