Update examples due to new syntax highlighting 🌹

This commit is contained in:
Laurenz 2019-11-08 18:33:17 +01:00
parent 1ece263579
commit 7d853cbea1
5 changed files with 9 additions and 12 deletions

View File

@ -141,7 +141,7 @@ fn test(name: &str, src: &str) {
fn preprocess<'a>(src: &'a str) -> (String, Option<Size2D>) { fn preprocess<'a>(src: &'a str) -> (String, Option<Size2D>) {
let include_regex = Regex::new(r"\{include:((.|\.|\-)*)\}").unwrap(); let include_regex = Regex::new(r"\{include:((.|\.|\-)*)\}").unwrap();
let lorem_regex = Regex::new(r"\{lorem:(\d*)\}").unwrap(); let lorem_regex = Regex::new(r"\{lorem:(\d*)\}").unwrap();
let size_regex = Regex::new(r"\{(size:(([\d\w]*)\*([\d\w]*)))\}").unwrap(); let size_regex = Regex::new(r"\{(size:(([\d\w]*)\sx\s([\d\w]*)))\}").unwrap();
let mut size = None; let mut size = None;

View File

@ -1,4 +1,4 @@
{size:150pt*215pt} {size:150pt x 215pt}
// ---------------------------------- // // ---------------------------------- //
// Without newline in between. // Without newline in between.

View File

@ -1,6 +1,6 @@
{size:420pt*300pt} {size:420pt x 300pt}
[box: flow=horizontal][ [box: flow = horizontal][
*Technical University Berlin* [n] *Technical University Berlin* [n]
*Faculty II, Institute for Mathematics* [n] *Faculty II, Institute for Mathematics* [n]
Secretary Example [n] Secretary Example [n]
@ -17,7 +17,7 @@
*Alle Antworten sind zu beweisen.* *Alle Antworten sind zu beweisen.*
] ]
[box: flow=horizontal][ [box: flow = horizontal][
*1. Aufgabe* [align: right][(1 + 1 + 2 Punkte)] *1. Aufgabe* [align: right][(1 + 1 + 2 Punkte)]
] ]

View File

@ -1,4 +1,4 @@
{size:150pt*200pt} {size:150pt x 200pt}
{lorem:100} {lorem:100}
[page.break] [page.break]

View File

@ -1,4 +1,4 @@
{size:250pt*500pt} {size:250pt x 500pt}
_Emoji:_ Hello World! 🌍 _Emoji:_ Hello World! 🌍
@ -9,14 +9,11 @@ _Styles with functions:_ This [bold][word] is made bold and [italic][that] itali
using the standard library functions `bold` and `italic`! using the standard library functions `bold` and `italic`!
[italic] [italic]
Styles can also be changed through [bold] context modification. Styles can also be changed through context modification.
This works basically in the same way as the built-in syntax. This works basically in the same way as the built-in syntax.
_ _
This is not italic anymore, but still bold. This is not italic anymore. 😀
[bold]
This is completely reset. 😀
[box][ [box][
[italic] [italic]