Skip to content

Commit

Permalink
fix(Documents): When writing as other format ensure standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Aug 31, 2021
1 parent 03f850d commit 07e33a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rust/src/documents.rs
Expand Up @@ -461,6 +461,7 @@ impl Document {

let content = if let Some(root) = &self.root {
let mut options = encode::Options::default();
options.standalone = true;
if let Some(theme) = theme {
options.theme = theme
}
Expand Down

0 comments on commit 07e33a9

Please sign in to comment.