Current section

34 Versions

Jump to

Compare versions

10 files changed
+713 additions
-252 deletions
  @@ -8,7 +8,7 @@ A parser for [Djot][djot], a markdown-like language.
8 8 [![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/jot/)
9 9
10 10 ```sh
11 - gleam add jot@7
11 + gleam add jot@8
12 12 ```
13 13
14 14 ```gleam
  @@ -46,14 +46,17 @@ This project is a work in progress. So far it supports:
46 46 - [x] Emphasis and strong
47 47 - [x] Footnotes
48 48 - [x] Headings
49 - - [x] Images
49 + - [x] Images (with attributes support)
50 50 - [x] Inline code
51 - - [x] Links (inline and reference)
51 + - [x] Links (inline and reference, with attributes support)
52 + - [x] Autolinks (email and URL)
52 53 - [x] Lists (without nesting)
53 54 - [x] Manual line breaks
54 55 - [x] Maths (inline and display)
55 56 - [x] Paragraphs
56 57 - [x] Raw blocks
58 + - [x] Span with attributes
57 59 - [x] Thematic breaks
58 60 - [x] Smart replacing of hyphens with dashes
59 61 - [x] Smart replacing of `...` with ellipsis
62 + - [x] Non-breaking spaces
  @@ -1,5 +1,5 @@
1 1 name = "jot"
2 - version = "7.1.1"
2 + version = "8.0.0"
3 3 gleam = ">= 1.5.0"
4 4 description = "A parser for Djot, a markdown-like language"
5 5 licences = ["Apache-2.0"]
  @@ -1,6 +1,6 @@
1 1 {<<"name">>, <<"jot">>}.
2 2 {<<"app">>, <<"jot">>}.
3 - {<<"version">>, <<"7.1.1">>}.
3 + {<<"version">>, <<"8.0.0">>}.
4 4 {<<"description">>, <<"A parser for Djot, a markdown-like language"/utf8>>}.
5 5 {<<"licenses">>, [<<"Apache-2.0">>]}.
6 6 {<<"build_tools">>, [<<"gleam">>]}.
  @@ -10,6 +10,11 @@
10 10 {<<"Repository">>, <<"https://github.com/lpil/jot">>}
11 11 ]}.
12 12 {<<"requirements">>, [
13 + {<<"houdini">>, [
14 + {<<"app">>, <<"houdini">>},
15 + {<<"optional">>, false},
16 + {<<"requirement">>, <<">= 1.1.0 and < 2.0.0">>}
17 + ]},
13 18 {<<"splitter">>, [
14 19 {<<"app">>, <<"splitter">>},
15 20 {<<"optional">>, false},
  @@ -19,11 +24,6 @@
19 24 {<<"app">>, <<"gleam_stdlib">>},
20 25 {<<"optional">>, false},
21 26 {<<"requirement">>, <<">= 0.54.0 and < 2.0.0">>}
22 - ]},
23 - {<<"houdini">>, [
24 - {<<"app">>, <<"houdini">>},
25 - {<<"optional">>, false},
26 - {<<"requirement">>, <<">= 1.1.0 and < 2.0.0">>}
27 27 ]}
28 28 ]}.
29 29 {<<"files">>, [
  @@ -44,6 +44,7 @@
44 44 <<"include/jot_MathInline.hrl">>,
45 45 <<"include/jot_Paragraph.hrl">>,
46 46 <<"include/jot_RawBlock.hrl">>,
47 + <<"include/jot_Span.hrl">>,
47 48 <<"include/jot_Strong.hrl">>,
48 49 <<"src/jot.app.src">>,
49 50 <<"src/jot.erl">>,
  @@ -1,5 +1,6 @@
1 1 -record(document, {
2 2 content :: list(jot:container()),
3 3 references :: gleam@dict:dict(binary(), binary()),
4 + reference_attributes :: gleam@dict:dict(binary(), gleam@dict:dict(binary(), binary())),
4 5 footnotes :: gleam@dict:dict(binary(), list(jot:container()))
5 6 }).
  @@ -1 +1,5 @@
1 - -record(image, {content :: list(jot:inline()), destination :: jot:destination()}).
1 + -record(image, {
2 + attributes :: gleam@dict:dict(binary(), binary()),
3 + content :: list(jot:inline()),
4 + destination :: jot:destination()
5 + }).
Loading more files…