docs: update README.md and doc-test
This commit is contained in:
parent
21aba13d71
commit
5a9e085b61
5 changed files with 298 additions and 226 deletions
|
|
@ -81,12 +81,12 @@ fn parse() {
|
|||
);
|
||||
|
||||
assert_eq!(
|
||||
Keyword::parse("#+ATTR_LATEX: :width 5cm"),
|
||||
Keyword::parse("#+ATTR_LATEX: :width 5cm\n"),
|
||||
Some((
|
||||
"ATTR_LATEX",
|
||||
None,
|
||||
":width 5cm",
|
||||
"#+ATTR_LATEX: :width 5cm".len()
|
||||
"#+ATTR_LATEX: :width 5cm\n".len()
|
||||
))
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
//! Org-mode elements module
|
||||
|
||||
mod block;
|
||||
mod clock;
|
||||
mod cookie;
|
||||
|
|
@ -47,6 +49,12 @@ pub use self::{
|
|||
|
||||
use indextree::NodeId;
|
||||
|
||||
/// Org-mode element enum
|
||||
///
|
||||
/// Generally, each variant contains a element struct and
|
||||
/// a set of properties which indicate the position of the
|
||||
/// element in the original string.
|
||||
///
|
||||
#[derive(Debug)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize))]
|
||||
#[cfg_attr(feature = "serde", serde(tag = "type"))]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue