Timur Demin
8c1a9a36da
Refactor rendering code
...
This refactoring simplifies some originally quirky parts of rendering
code while also adding support for rendering emphasized text (handled by
the same routine the ordinary text already is).
2020-11-19 03:09:28 +05:00
Timur Demin
35b4168935
Comply with Gemini spec p. 5.4.1
...
This part of spec says soft text wrapping is preferred to hard wrapping,
to comply with that we replace the newlines in raw Markdown text with
spaces.
2020-11-11 23:21:17 +05:00
Timur Demin
ceed6f07f4
Fix rendering of links as first paragraph child
...
Fixes #2 .
2020-11-11 23:21:17 +05:00
Timur Demin
b181afc5f1
Add YAML front matter parsing support
...
Fixes #1 . Only a subset of Hugo front matter props are supported, namely
title/date.
2020-11-11 23:21:17 +05:00
Timur Demin
326dc63112
Add support for inline code blocks
2020-11-11 23:21:17 +05:00
Timur Demin
32ec381d73
Add README and license code under GPLv3
2020-11-11 23:21:16 +05:00
Timur Demin
5de6b9b930
Add support for lists
2020-11-08 16:40:49 +05:00
Timur Demin
b2a941bdb6
Add preformatted text block support
2020-11-08 01:07:53 +05:00
Timur Demin
6ee9efab52
Improve the rendering of subsequent links
2020-11-08 00:05:53 +05:00
Timur Demin
3d9314f0a4
Make blockquote read stuff not byte-by-byte
2020-11-07 19:27:55 +05:00
Timur Demin
4799b2b511
Improve newline handling
2020-11-07 19:22:31 +05:00
Timur Demin
49725d712a
Add image/link text render and blockquote support
2020-11-07 17:21:36 +05:00
Timur Demin
85b0ef51b3
Add the latest code
2020-11-06 13:47:02 +05:00