Update README.md
parent
1453ca2a51
commit
e179ac8003
18
README.md
18
README.md
|
@ -8,6 +8,22 @@
|
|||
|
||||
[](https://github.com/bokuweb/docx-rs/actions)
|
||||
|
||||
# Features
|
||||
## Example
|
||||
|
||||
``` rust
|
||||
use docx_core::*;
|
||||
|
||||
pub fn hello() -> Result<(), DocxError> {
|
||||
let path = std::path::Path::new("./tests/output/hello.docx");
|
||||
let file = std::fs::File::create(&path).unwrap();
|
||||
Docx::new()
|
||||
.add_paragraph(Paragraph::new().add_run(Run::new().add_text("Hello")))
|
||||
.build()
|
||||
.pack(file)?;
|
||||
Ok(())
|
||||
}
|
||||
```
|
||||
|
||||
## Features
|
||||
|
||||
- [x] Paragraph
|
||||
|
|
Loading…
Reference in New Issue