Skip to content

Commit ad2d502

Browse files
committed
Add IfElseInline to NEWS + fix alerts
1 parent 68ef34e commit ad2d502

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

NEWS.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,20 @@
33
## v1.0.7
44

55
> ![INFO]
6+
> @avlouis added inline command `IfElseInline` for ternary if-then-else statements (#31).
7+
> ```typ
8+
> #{
9+
> Assign($m$, IfElseInline($x < y$, $x$, $y$))
10+
> }
11+
> ```
12+
13+
> [!INFO]
614
> @wamserma fixed an issue with the width of the column offset not scaling with
715
> the font size (#26).
816
> Now, the column is specified relative to the font size in [`em`](https://typst.app/docs/reference/layout/length/).
917
> This is not a breaking change.
1018
11-
> ![INFO]
19+
> [!INFO]
1220
> @nonl4331 fixed an issue with `LineComment` not working with certain input types (#27, #28).
1321
>
1422
> LineComment statements similar to the instances below will now render correctly.
@@ -21,7 +29,7 @@
2129
2230
## v1.0.6
2331
24-
> ![INFO]
32+
> [!INFO]
2533
> @TimeTravelPenguin fixed an issue with `Assign` not working with nested blocks (#23, #24).
2634
>
2735
> Algorithms similar to the one below will now render correctly.
@@ -34,7 +42,7 @@
3442
3543
## v1.0.5
3644
37-
> ![INFO]
45+
> [!INFO]
3846
> Added an option `line-numbers` to toggle line numbers on/off (#22).
3947
> ```typ
4048
> #algorithm(line-numbers: false, ...)
@@ -46,7 +54,7 @@
4654
> #let algorithm-figure = algorithm-figure.with(line-numbers: false)
4755
> ```
4856
49-
> ![INFO]
57+
> [!INFO]
5058
> Fix an issue with `algorithm-figure` float placement (#21).
5159
> `style-algorithm` now has options `placement` and `scope` mimicking `figure`.
5260
> By default, options set on `figure(kind: "algorithm")` supersede those of
@@ -59,7 +67,7 @@
5967
6068
## v1.0.4
6169
62-
> ![INFO]
70+
> [!INFO]
6371
> @drecouse fixed an issue with `LineComment` preventing loops' body from displaying (#20).
6472
> Now, you can use `LineComment` on loops without issues.
6573
> ```typ
@@ -70,20 +78,20 @@
7078
> "This is inside a nested block",
7179
> )
7280
> ```
73-
> ![Screenshot of an algorithm showing a for-loop from i = 1 to 10, with each iteration containing a line calculation (1+1) and a nested while-loop from j = 1 to 10 assigning x = 1, with line comments describing "This is inside a nested block" and "This is a line comment after a block".](https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/tests/linecommentfor/ref/1.png)
81+
> [!Screenshot of an algorithm showing a for-loop from i = 1 to 10, with each iteration containing a line calculation (1+1) and a nested while-loop from j = 1 to 10 assigning x = 1, with line comments describing "This is inside a nested block" and "This is a line comment after a block".](https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/tests/linecommentfor/ref/1.png)
7482
75-
> ![INFO]
83+
> [!INFO]
7684
> `algorithm-figure` does not set `placement: none` anymore (#21).
7785
7886
7987
## v1.0.3
8088
81-
> ![WARNING]
89+
> [!WARNING]
8290
> algorithmic now use grids instead of tables for accessibility purposes, see [layout/grid](https://typst.app/docs/reference/layout/grid/#:~:text=Typst%20will%20annotate%20its%20output%20such%20that%20screenreaders%20will%20announce%20content%20in%20table%20as%20tabular).
8391
> Any `table.hlines` in `style-algorithm` will error and `grid.hlines` must be used instead.
8492
85-
> ![INFO]
93+
> [!INFO]
8694
> This version fixes an issue with the indentation offset where the last column corresponding to comments goes in the margin.
8795
88-
> ![INFO]
96+
> [!INFO]
8997
> `State` is renamed to `Line` and will now work with other commands such as `LineComment`. Documentation is added in the [README](README.md).

0 commit comments

Comments
 (0)