feat(export): update html render

This commit is contained in:
PoiScript 2019-06-27 01:53:50 +08:00
parent 33f78ee207
commit 0a876e2f2b
10 changed files with 213 additions and 358 deletions

View file

@ -8,6 +8,12 @@ pub struct Keyword<'a> {
pub value: &'a str,
}
#[derive(Debug)]
pub struct BabelCall<'a> {
pub key: &'a str,
pub value: &'a str,
}
impl Keyword<'_> {
#[inline]
// return (key, option, value, offset)

View file

@ -33,7 +33,7 @@ pub use self::{
headline::Headline,
inline_call::InlineCall,
inline_src::InlineSrc,
keyword::Keyword,
keyword::{BabelCall, Keyword},
link::Link,
list::{List, ListItem},
macros::Macros,
@ -56,7 +56,7 @@ pub enum Element<'a> {
contents_end: usize,
},
BabelCall {
value: &'a str,
call: BabelCall<'a>,
begin: usize,
end: usize,
},