diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-09 00:37:13 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-06-09 00:37:13 +0200 |
| commit | 5afb42ad89abb518a01a09051f0f9b6f75bd383e (patch) | |
| tree | b12368a287f22de711df8d759c20ee742ed5b4c2 /src/library/mod.rs | |
| parent | d69dfa84ec957ac4037f60a3335416a9f73b97c8 (diff) | |
Lists with indent-based parsing
- Unordered lists with indent-based parsing and basic layout using stacks
- Headings are now also indent based
- Removes syntax functions since they will be superseded by select & transform
Diffstat (limited to 'src/library/mod.rs')
| -rw-r--r-- | src/library/mod.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/library/mod.rs b/src/library/mod.rs index 6a46314c..f9e4f68a 100644 --- a/src/library/mod.rs +++ b/src/library/mod.rs @@ -8,7 +8,6 @@ mod basic; mod font; mod image; mod lang; -mod markup; mod math; mod pad; mod page; @@ -22,7 +21,6 @@ pub use align::*; pub use basic::*; pub use font::*; pub use lang::*; -pub use markup::*; pub use math::*; pub use pad::*; pub use page::*; @@ -38,20 +36,12 @@ use crate::eval::{EvalContext, FuncArgs, Scope, TemplateValue, Value}; use crate::exec::{Exec, FontFamily}; use crate::font::{FontStyle, FontWeight, VerticalFontMetric}; use crate::geom::*; -use crate::syntax::{Node, Spanned}; +use crate::syntax::Spanned; /// Construct a scope containing all standard library definitions. pub fn new() -> Scope { let mut std = Scope::new(); - // Syntax functions. - std.def_func(Node::LINEBREAK, linebreak); - std.def_func(Node::PARBREAK, parbreak); - std.def_func(Node::STRONG, strong); - std.def_func(Node::EMPH, emph); - std.def_func(Node::HEADING, heading); - std.def_func(Node::RAW, raw); - // Library functions. std.def_func("align", align); std.def_func("circle", circle); |
