diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-03-21 17:46:09 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-03-21 17:50:56 +0100 |
| commit | 5e08028fb36aa766957cba64c5c665edf9b96fb7 (patch) | |
| tree | 912799dad3c1e25b7032f3e3bee009537c6f555b /src/library/spacing.rs | |
| parent | 898728f260923a91444eb23b522d0abf01a4299b (diff) | |
Syntax functions 🚀
This adds overridable functions that markup desugars into. Specifically:
- \ desugars into linebreak
- Two newlines desugar into parbreak
- * desugars into strong
- _ desugars into emph
- = .. desugars into heading
- `..` desugars into raw
Diffstat (limited to 'src/library/spacing.rs')
| -rw-r--r-- | src/library/spacing.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/spacing.rs b/src/library/spacing.rs index c96b8be4..5e3b7743 100644 --- a/src/library/spacing.rs +++ b/src/library/spacing.rs @@ -1,7 +1,7 @@ use super::*; use crate::layout::SpacingNode; -/// `h`: Add horizontal spacing. +/// `h`: Insert horizontal spacing. /// /// # Positional parameters /// - Amount of spacing: of type `linear` relative to current font size. @@ -12,7 +12,7 @@ pub fn h(ctx: &mut EvalContext, args: &mut FuncArgs) -> Value { spacing_impl(ctx, args, SpecAxis::Horizontal) } -/// `v`: Add vertical spacing. +/// `v`: Insert vertical spacing. /// /// # Positional parameters /// - Amount of spacing: of type `linear` relative to current font size. |
