diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-04-01 13:25:00 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-04-01 13:33:54 +0200 |
| commit | 6c29e45ce2c848fe88003b62aaf8aacf7c0b8da6 (patch) | |
| tree | 0e7d308ea5115c99141075113501206730fe82fa /src/lib.rs | |
| parent | 3b4b55c59ecc85fc7446795f136baf632d0c9449 (diff) | |
Implement paragraphs 📜
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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] |
