Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/v1.0.0 #130

Merged
merged 211 commits into from
Nov 24, 2023
Merged
Changes from 1 commit
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
ac50986
test(renderer)!: disable renderer tests
moki Sep 22, 2023
124a4e5
chore(deps)!: bump custom-renderer, markdown-renderer
moki Sep 21, 2023
5c08d53
feat(markdown)!: process inline render in bulk
moki Sep 21, 2023
65bbb6b
feat(skeleton)!: process inline render in bulk
moki Sep 21, 2023
bdb9882
feat(xlf)!: process inline render in bulk
moki Sep 21, 2023
6921000
fix(xlf/parser): handle single trans-unit
moki Sep 24, 2023
fced24f
test(xlf/parser): rename test
moki Sep 24, 2023
e5657bd
fix(xlf/parser): parse trans-units targets with cheerio
moki Sep 27, 2023
21bb07d
fix(xlf/parser): use source when target is absent
moki Sep 28, 2023
0ef7bd6
feat(api/compose): add useSource option
moki Oct 5, 2023
8cd42f6
refactor(xlf/renderer): move under md-xlf scope
moki Oct 6, 2023
0ff6bbc
refactor(xlf/parser): move under parser scope
moki Oct 6, 2023
2f64d6f
rewrite(xlf/generator): trans-unit
moki Oct 6, 2023
7acf3e8
rewrite(xlf/generator): template
moki Oct 7, 2023
78b597d
test(xlf/parser): update tests
moki Oct 7, 2023
56ef7a4
feat(xlf/token): xlf token
moki Oct 9, 2023
f60f017
feat(xlf/parser)!: parse XLF tokens
moki Oct 9, 2023
2b82b09
test(xlf/parser): snapshot parsed tokens
moki Oct 10, 2023
258fe0c
feat(xlf/renderer/xlf-md): render xlf to markdown
moki Oct 10, 2023
b5ecc09
refactor(api/compose): parser and renderer glue
moki Oct 10, 2023
6a64462
fix(xlf/renderer/md-xlf): xlf escaping/unescaping
moki Oct 10, 2023
5649571
fix(markdown): types
moki Oct 10, 2023
7277a5c
feat(xlf/token/tag): add nodeType open/close
moki Oct 12, 2023
9d84310
feat(xlf/parser): parse syntax type
moki Oct 12, 2023
17e5299
feat(xlf/parser): parse xlf tokens from bold syntax
moki Oct 12, 2023
576d41a
feat(xlf/renderer/xlf-md): bold sytnax
moki Oct 12, 2023
3ae1d26
test(xlf/renderer/md-xlf): rename
moki Oct 13, 2023
c4e5cc0
fix(xlf): rename bold into strong
moki Oct 13, 2023
078c155
feat(xlf/generators): <g> tag
moki Oct 13, 2023
b4617cb
feat(xlf/renderer/md-xlf): strong
moki Oct 13, 2023
64498d1
test(xlf/renderer/md-xlf): strong
moki Oct 13, 2023
65c73d1
test(markdown/renderer): strong syntax
moki Oct 14, 2023
24ad362
test(skeleton/renderer): strong syntax
moki Oct 14, 2023
7b0167c
test(markdown/renderer): em syntax
moki Oct 14, 2023
dde25c1
test(skeleton/renderer): em syntax
moki Oct 14, 2023
2506392
feat(xlf/renderer/md-xlf): em syntax
moki Oct 14, 2023
8ee70bc
feat(xlf/parser): em syntax
moki Oct 14, 2023
7725bfc
feat(xlf/renderer/xlf-md): em syntax
moki Oct 14, 2023
2d08a53
test(skeleton/renderer): s syntax
moki Oct 16, 2023
8ed1350
test(markdown/renderer): s syntax
moki Oct 16, 2023
1d2efb5
test(xlf/parser): s syntax
moki Oct 16, 2023
80de3f0
feat(xlf/renderer/md-xlf): wrap s in <g> tags
moki Oct 16, 2023
c51a57d
test(xlf/renderer/md-xlf): s syntax
moki Oct 16, 2023
132de7d
feat(xlf/renderer/xlf-md): s syntax
moki Oct 16, 2023
9936756
test(xlf/renderer/xlf-md): s syntax
moki Oct 16, 2023
f1335d4
test(skeleton/renderer): sup syntax
moki Oct 16, 2023
fae58fb
test(markdown/renderer): sup syntax
moki Oct 16, 2023
7ec2e80
test(xlf/parser): sup syntax
moki Oct 16, 2023
20fec36
feat(xlf/renderer/md-xlf): sup syntax
moki Oct 16, 2023
0c8d117
test(xlf/renderer/md-xlf): sup syntax
moki Oct 16, 2023
d9436d9
feat(xlf/renderer/xlf-md): sup syntax
moki Oct 16, 2023
1e93b6a
test(xlf/renderer/xlf-md): sup syntax
moki Oct 16, 2023
9328d7b
test(markdown/renderer): samp syntax
moki Oct 17, 2023
6835a4c
test(skeleton/renderer): samp syntax
moki Oct 17, 2023
596f272
feat(xlf/renderer/md-xlf): samp syntax
moki Oct 17, 2023
081cce5
test(xlf/renderer/md-xlf): samp syntax
moki Oct 17, 2023
4985332
test(xlf/parser): samp syntax
moki Oct 17, 2023
43b237a
feat(xlf/renderer/xlf-md): samp syntax
moki Oct 17, 2023
9226264
test(xlf/renderer/xlf-md): samp syntax
moki Oct 17, 2023
00f8ba0
test(skeleton/renderer): code syntax
moki Oct 17, 2023
5856cc5
test(markdown/renderer): code syntax
moki Oct 17, 2023
0154131
feat(xlf/generator): x tag
moki Oct 17, 2023
4bd831a
feat(xlf/renderer/md-xlf): code syntax
moki Oct 17, 2023
5e0e2f3
test(xlf/renderer/md-xlf): code syntax
moki Oct 17, 2023
3087d93
feat(xlf/token): self-closing tags
moki Oct 17, 2023
8d9b1f0
fix(xlf/parser): self closing tags
moki Oct 17, 2023
de8c34c
test(xlf/parser): code syntax
moki Oct 17, 2023
280a37a
feat(xlf/renderer/xlf-md): code syntax
moki Oct 17, 2023
c749d38
test(xlf/renderer/xlf-md): code syntax
moki Oct 17, 2023
277b7bc
feat(skeleton/renderer): links syntax
moki Oct 18, 2023
03dbcdc
test(skeleton/renderer): links syntax
moki Oct 18, 2023
40985bb
test(markdown/renderer): links syntax
moki Oct 18, 2023
5ef1587
chore(xlf/renderer/md-xlf): remove absolete rules
moki Oct 18, 2023
1ecfc93
feat(xlf/renderer/md-xlf): link syntax
moki Oct 18, 2023
858eb0a
test(xlf/renderer/md-xlf): link sytnax
moki Oct 18, 2023
0179e4c
fix(xlf/renderer/md-xlf): link syntax
moki Oct 18, 2023
9b0e0c7
test(xlf/renderer/md-xlf): update link syntax
moki Oct 18, 2023
127d98d
fix(xlf/renderer/md-xlf): link syntax
moki Oct 18, 2023
e5e4069
test(xlf/renderer/md-xlf): update link syntax
moki Oct 18, 2023
33e4f74
test(xlf/parser): link syntax
moki Oct 18, 2023
daf3661
fix(xlf/token): add self-closing nodeType
moki Oct 18, 2023
420d27d
feat(xlf/renderer/xlf-md): link syntax
moki Oct 18, 2023
ca771d1
test(xlf/renderer/xlf-md): link syntax
moki Oct 18, 2023
d60b5c8
test(markdown/renderer): ref link syntax
moki Oct 19, 2023
270b268
test(skeleton/renderer): ref link syntax
moki Oct 19, 2023
495206a
test(xlf/parser): ref link syntax
moki Oct 19, 2023
3556f9d
feat(xlf/renderer): ref link syntax
moki Oct 19, 2023
9125327
test(xlf/renderer/md-xlf): ref link
moki Oct 19, 2023
732a292
feat(xlf/renderer/xlf-md): ref link syntax
moki Oct 19, 2023
a7de028
test(xlf/renderer/xlf-md): ref link syntax
moki Oct 19, 2023
5e7419a
test(markdown/renderer): autolink syntax
moki Oct 19, 2023
cd08a53
test(skeleton/renderer): autolink syntax
moki Oct 19, 2023
15d09af
test(xlf/parser): autolink syntax
moki Oct 19, 2023
c5dc122
feat(xlf/renderer/md-xlf): autolink syntax
moki Oct 19, 2023
f996d03
test(xlf/renderer/md-xlf): autolink syntax
moki Oct 19, 2023
7097e42
feat(xlf/renderer/xlf-md): autolink syntax
moki Oct 19, 2023
e64b9f6
test(xlf/renderer/xlf-md): autolink syntax
moki Oct 19, 2023
e110e60
test(markdown/renderer): variable href link
moki Oct 20, 2023
dbc668b
test(skeleton/renderer): variable href link
moki Oct 20, 2023
0868464
feat(xlf/renderer/md-xlf): variable href link
moki Oct 20, 2023
c3cfbed
test(xlf/parser): variable href link
moki Oct 20, 2023
855f390
test(xlf/renderer/md-xlf): variable href link
moki Oct 20, 2023
0c82e0a
test(xlf/renderer/xlf-md): variable href link
moki Oct 20, 2023
a5893ae
chore(deps): update markdown-renderer version
moki Oct 23, 2023
78f65f8
test(markdown/renderer): image syntax
moki Oct 23, 2023
dddfdd0
feat(markdown/renderer): image syntax
moki Oct 23, 2023
42072ad
feat(skeleton/renderer): image syntax
moki Oct 23, 2023
b635f64
test(skeleton/renderer): image syntax
moki Oct 23, 2023
9a95a98
feat(xlf/renderer/md-xlf): image syntax
moki Oct 23, 2023
645cca4
test(xlf/renderer/md-xlf): image syntax
moki Oct 23, 2023
f467587
test(xlf/parser): image syntax
moki Oct 23, 2023
e903908
feat(xlf/renderer/xlf-md): image syntax
moki Oct 23, 2023
5cd3002
test(xlf/renderer/xlf-md): image syntax
moki Oct 23, 2023
b549bad
infra: use node 18.* and npm 10.*
moki Oct 24, 2023
44dd28b
chore(deps): use @diplodoc-platform namesapce
moki Oct 24, 2023
85825f2
infra: update
moki Oct 25, 2023
b8093d8
test(markdown/renderer): video syntax
moki Oct 27, 2023
d2d21a9
test(skeleton/renderer): video syntax
moki Oct 27, 2023
6f06021
feat(xlf/renderer/md-xlf): video syntax
moki Oct 27, 2023
cb94b0a
test(xlf/renderer/md-xlf): video syntax
moki Oct 27, 2023
221ee0c
test(xlf/parser): video syntax
moki Oct 27, 2023
33a96d9
feat(xlf/renderer/xlf-md): video syntax
moki Oct 27, 2023
a1fb217
test(xlf/renderer/xlf-md): video syntax
moki Oct 27, 2023
d602555
chore(deps): bump markdown-it-markdown-renderer
moki Nov 1, 2023
95cb653
test(markdown/renderer): anchor syntax
moki Nov 1, 2023
1fcf0e8
test(skeleton/renderer): anchor syntax
moki Nov 1, 2023
3edc3ac
feat(xlf/renderer/md-xlf): anchor syntax
moki Nov 1, 2023
bf415b5
test(xlf/renderer/md-xlf): anchor syntax
moki Nov 1, 2023
985091d
test(xlf/parser): anchor syntax
moki Nov 1, 2023
af7ff42
feat(xlf/renderer/xlf-md): anchor syntax
moki Nov 1, 2023
a44584b
test(xlf/renderer/xlf-md): anchor syntax
moki Nov 1, 2023
118cf27
feat(markdown/renderer): file syntax
moki Nov 2, 2023
df76f1f
test(markdown/renderer): file syntax
moki Nov 2, 2023
0a04ce6
feat(skeleton/renderer): file syntax
moki Nov 2, 2023
dd4730c
test(skeleton/renderer): file syntax
moki Nov 2, 2023
c1d3fc0
feat(xlf/renderer/md-xlf): file syntax
moki Nov 2, 2023
e9b1d61
test(xlf/renderer/md-xlf): file syntax
moki Nov 2, 2023
958ae2b
feat(xlf/renderer/xlf-md): file syntax
moki Nov 2, 2023
b38b4db
test(xlf/renderer/xlf-md): file syntax
moki Nov 2, 2023
614da4e
test(xlf/parser): file syntax
moki Nov 2, 2023
59062a3
feat(liquid/tokenizer): tokenize liquid, variables syntax
moki Nov 13, 2023
22ba104
test(liquid/tokenizer): liquid and variables syntax
moki Nov 13, 2023
d040cba
feat(liquid/renderer): conditions
moki Nov 14, 2023
b2e28a9
test(markdown/renderer): liquid conditions
moki Nov 14, 2023
3893031
test(skeleton/renderer): liquid conditions
moki Nov 14, 2023
a1a4351
test(xlf/parser): liquid conditions
moki Nov 14, 2023
55dad0e
feat(xlf/renderer/md-xlf): liquid conditions
moki Nov 14, 2023
edf9c3f
test(xlf/renderer/md-xlf): liquid conditons
moki Nov 14, 2023
bcca293
feat(xlf/renderer/xlf-md): liquid conditions
moki Nov 14, 2023
86115c1
test(xlf/renderer/xlf-md): liquid conditions
moki Nov 14, 2023
4f908ad
test(skeleton/renderer): liquid conditions snapshot name
moki Nov 14, 2023
a40284d
test(markdown/renderer): liquid loops
moki Nov 14, 2023
ba5bbd4
test(skeleton/renderer): liquid loops
moki Nov 14, 2023
e6ad82f
feat(liquid/renderer): liquid loops
moki Nov 14, 2023
3d7e047
test(xlf/parser): liquid loops
moki Nov 14, 2023
b470eb7
test(xlf/renderer/md-xlf): liquid loops
moki Nov 14, 2023
d7e6b8e
feat(xlf/renderer/xlf-md): liquid loops
moki Nov 14, 2023
1c9c472
test(xlf/renderer/xlf-md): liquid loops
moki Nov 14, 2023
a760785
fix(liquid/tokenizer): functions lexing lazy space matching
moki Nov 14, 2023
27740f7
test(markdown/renderer): liquid functions
moki Nov 14, 2023
6922c8c
test(skeleton/renderer): liquid functions
moki Nov 14, 2023
c50e897
feat(liquid/renderer): functions
moki Nov 14, 2023
2e8ece7
test(xlf/parser): liquid functions
moki Nov 14, 2023
33c8724
test(xlf/renderer/md-xlf): liquid functions
moki Nov 14, 2023
0c018be
feat(xlf/renderer/xlf-md): liquid functions
moki Nov 14, 2023
63bf222
test(xlf/renderer/xlf-md): liquid functions
moki Nov 14, 2023
03abade
test(skeleton/renderer): liquid filters
moki Nov 15, 2023
07afac4
test(markdown/renderer): liquid filters
moki Nov 15, 2023
9b853bd
feat(liquid/renderer): filters
moki Nov 15, 2023
3cfafe7
test(xlf/parser): liquid filters
moki Nov 15, 2023
2249dec
test(xlf/renderer/md-xlf): liquid filters
moki Nov 15, 2023
ab6ae22
feat(xlf/renderer/xlf-md): liquid filters
moki Nov 15, 2023
984fa55
test(xlf/renderer/xlf-md): liquid filters
moki Nov 15, 2023
2036365
test(markdown/renderer): liquid variables
moki Nov 15, 2023
9f1824a
test(skeleton/renderer): liquid variables
moki Nov 15, 2023
287ee01
feat(liquid/renderer): variable
moki Nov 15, 2023
f2ddc12
test(xlf/parser): liquid variables
moki Nov 15, 2023
a45af8f
test(xlf/renderer/md-xlf): liquid variables
moki Nov 15, 2023
35595d8
feat(xlf/renderer/xlf-md): liquid variables
moki Nov 15, 2023
451649c
test(xlf/renderer/xlf-md): liquid variables
moki Nov 15, 2023
966b5ee
fix(liquid/tokenizer): dashes inside variable functions
moki Nov 16, 2023
2676ca5
test(liquid/tokenizer): dashes inside variable functions
moki Nov 16, 2023
b208726
fix(liquid/tokenizer): dashes inside variable filters
moki Nov 16, 2023
f6fb268
test(liquid/tokenizer): dashes inside variable filters
moki Nov 16, 2023
a17370a
fix(liquid/tokenizer): dashes inside variables
moki Nov 16, 2023
5f2e105
test(liquid/tokenizer): dashes inside variables
moki Nov 16, 2023
131a8ed
fix(liquid/tokenizer): dashes inside loop variables
moki Nov 16, 2023
5ed3454
test(liquid/tokenizer): dashes inside loop variables
moki Nov 16, 2023
a8b02b5
chore(deps): bump sentenizer version
moki Nov 20, 2023
f489051
test(markdown/renderer): sentence separated by newline
moki Nov 20, 2023
c7005b7
test(skeleton/renderer): sentences separated by newline
moki Nov 20, 2023
64b1a18
test(xlf/renderer/md-xlf): sentences separated by newline
moki Nov 20, 2023
7fdd2ac
fix(xlf/renderer/md-xlf): wrap inline code in <g> tag
moki Nov 21, 2023
ce53f15
test(xlf/renderer/md-xlf): inline code wrapped in <g> tag
moki Nov 21, 2023
7415c5e
test(xlf/parser): code inline wrapped in <g> tags
moki Nov 21, 2023
5391c9f
test(xlf/renderer/xlf-md): code wrapped in <g> tags
moki Nov 21, 2023
47aa569
chore: lint errors
moki Nov 21, 2023
d192522
test(skeleton/renderer): html inline
moki Nov 21, 2023
ac23bba
test(markdown/renderer): html inline
moki Nov 21, 2023
9cab2b0
feat(xlf/renderer/md-xlf): html inline
moki Nov 21, 2023
03a0299
test(xlf/renderer/md-xlf): html inline
moki Nov 21, 2023
1bdd6e3
test(xlf/parser): html inline
moki Nov 21, 2023
4d494c7
feat(xlf/renderer/xlf-md): html inline
moki Nov 21, 2023
23d2203
test(xlf/renderer/xlf-md): html inline
moki Nov 21, 2023
cd5bba1
feat: allow passing custom hooks
main-kun Sep 25, 2023
0804850
fix(infra): engines
moki Nov 24, 2023
7380198
chore(deps): bump transform
moki Nov 24, 2023
b922128
test(markdown/renderer): liquid filters inside tables
moki Nov 24, 2023
e1bb543
test(skeleton/renderer): liquid filters inside tables
moki Nov 24, 2023
e26ba3c
test(xlf/renderer/md-xlf): liquid filters inside tables
moki Nov 24, 2023
e8094f1
1.0.0
moki Nov 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(skeleton/renderer): liquid loops
  • Loading branch information
moki committed Nov 23, 2023
commit ba5bbd47b34e2f565d29616e9359c6822d227e7e
2 changes: 2 additions & 0 deletions src/skeleton/__snapshots__/renderer-inline.test.ts.snap
Original file line number Diff line number Diff line change
@@ -19,6 +19,8 @@ exports[`inline: skeleton rendering inline: renders hash instead of the sentence

exports[`inline: skeleton rendering inline: renders hash instead of the sentences with liquid conditions. 1`] = `"%%%1%%% %%%2%%%"`;

exports[`inline: skeleton rendering inline: renders hash instead of the sentences with liquid loops. 1`] = `"%%%1%%% %%%2%%%"`;

exports[`inline: skeleton rendering inline: renders hash instead of the sentences with plain text. 1`] = `"%%%1%%% %%%2%%%"`;

exports[`inline: skeleton rendering inline: renders hash instead of the sentences with ref links syntax. 1`] = `"%%%1%%% %%%2%%%"`;
10 changes: 10 additions & 0 deletions src/skeleton/renderer-inline.test.ts
Original file line number Diff line number Diff line change
@@ -152,4 +152,14 @@ describe('inline: skeleton rendering', () => {
const rendered = render(parameters);
expect(rendered).toMatchSnapshot();
});

it('inline: renders hash instead of the sentences with liquid loops.', () => {
const parameters: RenderParameters = {
markdown:
'Sentence {% for x in xs %} x {% endfor %}. {% for x in xs %} X {% endfor %} cool.',
};

const rendered = render(parameters);
expect(rendered).toMatchSnapshot();
});
});