summaryrefslogtreecommitdiff
path: root/tests/ref/markup
AgeCommit message (Collapse)Author
2022-02-28Reorganize libraryLaurenz
2022-02-18List label stylingLaurenz
2022-02-17Automatic list numberingLaurenz
2022-02-10Allow escaping of `-` and `.`Laurenz
2022-02-07Redesigned template layoutLaurenz
2022-01-30Rework strong and emphLaurenz
- Star and underscore not parsed as strong/emph inside of words - Stars/underscores must be balanced and they cannot go over paragraph break - New `strong` and `emph` classes
2022-01-27Add Code Block syntax highlightingMartin Haug
2022-01-24Export into rendered imagesLaurenz
2021-12-21Set Rules Episode IX: The Rise of TestingLaurenz
2021-12-15Set Rules Episode V: The Tests Strike BackLaurenz
2021-11-16Image fit modesLaurenz
2021-11-08Final touchesLaurenz
2021-11-05Code Review: No Patrick, question marks are not an instrumentMartin Haug
2021-10-29Dedent code blocksLaurenz
2021-10-05Change indent requirements to allow alignmentLaurenz
Previously the following wouldn't work correctly because "Fourth" would have been a child of "Third". ``` 3. Third ⎵. Fourth ```
2021-09-30New default fontsLaurenz
2021-08-10Minor refactoringsLaurenz
- Reorder parser methods and use `Pos` everywhere - Remove tab special handling for columns and adapt heading/list/enum indent handling - Don't panic when a file has an empty path
2021-07-30Fatal errorsLaurenz
- Makes errors fatal, so that a phase is only reached when all previous phases were error-free - Parsing still recovers and can produce multiple errors - Evaluation fails fast and can thus produce only a single error (except for parse errors due to an import) - The single error that could occur during execution is removed for now - Removes Value::Error variant
2021-07-10Remove warnings from parsing and castingLaurenz
2021-07-08Switch to = for headings once againLaurenz
2021-06-29Make test separators commentableLaurenz
2021-06-11Basic enumsLaurenz
2021-06-10Restructure testsLaurenz
2021-06-09Lists with indent-based parsingLaurenz
- 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
2021-06-07Switch back to hashtags for headingsLaurenz
2021-04-03Refresh all reference images ✅Laurenz
2021-03-29Move around test cases 🚚Laurenz
2021-03-27Better space coalescing logic 🌧Laurenz
This creates a smaller state machine helper type for softness coalescing, which does not own the resulting nodes. While this creates a bit more duplication in stack and par builder, it makes it a lot easier to integrate additional logic into the paragraph builder. Furthermore: - Line breaks are now "hard", that is, not coalesced with each other. - Text nodes with equal style are now merged allowing for example `f{}i` to form a ligature.
2021-03-24Text shaping 🚀Laurenz
- Shapes text with rustybuzz - Font fallback with family list - Tofus are shown in the first font Co-Authored-By: Martin <mhaug@live.de>
2021-03-23Render svg emoji 🐳Laurenz
2021-03-23Bump tiny-skia to 0.5 🔼Laurenz
2021-03-22Fix bug with line spacing after headings ✅Laurenz
2021-03-21Syntax functions 🚀Laurenz
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
2021-03-19Configurable font edges ⚙Laurenz
Adds top-edge and bottom-edge parameters to the font function. These define how the box around a word is computed. The possible values are: - ascender - cap-height (default top edge) - x-height - baseline (default bottom edge) - descender The defaults are chosen so that it's easy to create good-looking designs with vertical alignment. Since they are much tighter than what most other software uses by default, the default leading had to be increased to 50% of the font size and paragraph spacing to 100% of the font size. The values cap-height and x-height fall back to ascender in case they are zero because this value may occur in fonts that don't have glyphs with cap- or x-height (like Twitter Color Emoji). Since cap-height is the default top edge, doing no fallback would break things badly. Removes softness in favor of a simple boolean for pages and a more finegread u8 for spacing. This is needed to make paragraph spacing consume line spacing created by hard line breaks.
2021-03-10Better line spacing calculations ↕Laurenz
- Only add line spacing between lines. Previously, line spacing was added below every line, making `#box[word]` higher than just `word`. - Compute box height of text as `ascender - descender` so that the full word is contained in the box.
2021-03-02Replace default fonts 🆕Laurenz
2021-02-21Fix spacing after raw blocks ⬇️Laurenz
2021-02-20Reorganize tests 🔀Laurenz