v0.2.0
版本发布时间: 2023-07-05 07:49:30
platformer/typst-algorithms最新发布版本:v0.3.3(2023-09-21 08:02:19)
Breaking Changes
-
Removed
implicit-linebreaks
parameter fromalgo
— it was mostly experimental in the first place, and it was very easily broken. Explicit linebreaks just work better. -
Started treating trailing indentation commands as belonging to the next line — it used to be that occurrences of
#i
and#d
after a linebreak but before text would successfully apply the new indentation level to the following line. The logic for this was complicated and fragile due to relying on parsing the result of arepr
call, so it was removed. Now, the result of any indentation commands will only be reflected after the next linebreak.
New Features
-
Added
#comment
function — use the#comment
function in analgo
element to add a comment to a line.algo
also has the accompanying parameterscomment-prefix
andcomment-color
to style comments that appear in the algorithm. -
Added
strong-keywords
parameter toalgo
— settingstrong-keywords
totrue
in analgo
call will automatically emphasize common keywords that appear in your algorithm. Pass a list of strings to the accompanyingkeywords
parameter if you want to have different keywords than the default. -
Added
indent-guides
parameter toalgo
andcode
— bothalgo
andcode
now have anindent-guides
parameter that takes a stroke value.code
has an accompanyingtab-size
parameter that allows you to specify how big your tabs are in your raw text.
1、 algo.typ 18.11KB