File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ serde = "=1.0.217"
13
13
serde_derive = " =1.0.217"
14
14
serde_yaml = " =0.9.33"
15
15
serde_json = " =1.0.137"
16
- comrak = " =0.34.0"
16
+ comrak = { version = " =0.34.0" , features = [ " bon " ] }
17
17
rayon = " =1.10.0"
18
18
regex = " =1.11.1"
19
19
sass-rs = " =0.2.2"
Original file line number Diff line number Diff line change @@ -68,15 +68,13 @@ impl Post {
68
68
} = serde_yaml:: from_str ( yaml) ?;
69
69
// next, the contents. we add + to get rid of the final "---\n\n"
70
70
let options = comrak:: Options {
71
- render : comrak:: RenderOptionsBuilder :: default ( )
72
- . unsafe_ ( true )
73
- . build ( ) ?,
74
- extension : comrak:: ExtensionOptionsBuilder :: default ( )
75
- . header_ids ( Some ( String :: new ( ) ) )
71
+ render : comrak:: RenderOptions :: builder ( ) . unsafe_ ( true ) . build ( ) ,
72
+ extension : comrak:: ExtensionOptions :: builder ( )
73
+ . header_ids ( String :: new ( ) )
76
74
. strikethrough ( true )
77
75
. footnotes ( true )
78
76
. table ( true )
79
- . build ( ) ? ,
77
+ . build ( ) ,
80
78
..comrak:: Options :: default ( )
81
79
} ;
82
80
You can’t perform that action at this time.
0 commit comments