feat(elements): planning element
This commit is contained in:
parent
74fd77dba2
commit
2cba072245
10 changed files with 341 additions and 256 deletions
|
|
@ -60,11 +60,9 @@ fn main() -> Result<(), MyError> {
|
|||
eprintln!("Usage: {} <org-file>", args[0]);
|
||||
} else {
|
||||
let contents = String::from_utf8(fs::read(&args[1])?)?;
|
||||
let mut org = Org::new(&contents);
|
||||
let mut writer = Vec::new();
|
||||
|
||||
org.parse();
|
||||
org.html(&mut writer, CustomHtmlHandler)?;
|
||||
let mut writer = Vec::new();
|
||||
Org::parse(&contents).html(&mut writer, CustomHtmlHandler)?;
|
||||
|
||||
println!("{}", String::from_utf8(writer)?);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue