File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
crates/wasm-qmd-parser/src Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -30,14 +30,25 @@ pub fn run() {
3030 panic:: set_hook ( Box :: new ( console_error_panic_hook:: hook) ) ;
3131}
3232
33- fn json_to_pandoc ( input : & str ) -> Result < ( quarto_markdown_pandoc:: pandoc:: Pandoc , quarto_markdown_pandoc:: pandoc:: ASTContext ) , String > {
33+ fn json_to_pandoc (
34+ input : & str ,
35+ ) -> Result <
36+ (
37+ quarto_markdown_pandoc:: pandoc:: Pandoc ,
38+ quarto_markdown_pandoc:: pandoc:: ASTContext ,
39+ ) ,
40+ String ,
41+ > {
3442 match readers:: json:: read ( & mut input. as_bytes ( ) ) {
3543 Ok ( doc) => Ok ( doc) ,
3644 Err ( err) => Err ( format ! ( "Unable to read as json: {:?}" , err) ) ,
3745 }
3846}
3947
40- fn pandoc_to_json ( doc : & quarto_markdown_pandoc:: pandoc:: Pandoc , context : & quarto_markdown_pandoc:: pandoc:: ASTContext ) -> Result < String , String > {
48+ fn pandoc_to_json (
49+ doc : & quarto_markdown_pandoc:: pandoc:: Pandoc ,
50+ context : & quarto_markdown_pandoc:: pandoc:: ASTContext ,
51+ ) -> Result < String , String > {
4152 let mut buf = Vec :: new ( ) ;
4253 match writers:: json:: write ( doc, context, & mut buf) {
4354 Ok ( _) => {
You can’t perform that action at this time.
0 commit comments