summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-04-01 13:25:00 +0200
committerLaurenz <laurmaedje@gmail.com>2019-04-01 13:33:54 +0200
commit6c29e45ce2c848fe88003b62aaf8aacf7c0b8da6 (patch)
tree0e7d308ea5115c99141075113501206730fe82fa /src/lib.rs
parent3b4b55c59ecc85fc7446795f136baf632d0c9449 (diff)
Implement paragraphs 📜
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d9d250b9..f9883a87 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -23,7 +23,7 @@
//! let src = "Hello World from __Typeset__! 🌍";
//!
//! // Create a compiler with a font provider that provides three fonts
-//! // (the default sans-serif fonts and a fallback for the emoji).
+//! // (two sans-serif fonts and a fallback for the emoji).
//! let mut compiler = Compiler::new();
//! compiler.add_font_provider(FileSystemFontProvider::new("../fonts", vec![
//! ("NotoSans-Regular.ttf", font_info!(["NotoSans", "Noto", SansSerif])),
@@ -197,7 +197,11 @@ mod test {
#[test]
fn styled() {
- test("styled", "**Hello World**. That's __great__!");
+ test("styled", "
+ **Hello World**.
+
+ That's __great__!
+ ");
}
#[test]