Releases: Dherse/codly
Releases · Dherse/codly
Codly v1.2.0
What's Changed
⚠️ Breaking change: now all line references inannotations
,highlights
,range
,ranges
, etc. are all one-indexedhighlights
andannotations
used to be zero-indexed #48
⚠️ Breaking change: Codly internals are no longer visible (i.e exported), if you needed them, feel free to open an issue and I will make them public behind acodly-internal
variable⚠️ Breaking change: Codly uses a new system for references that no longer uses ashow ref: ...
and instead relies on figure with the kindscodly-line
andcodly-referencer
, be mindful that your show rules do not override those.- Quality of life change: Better code completion when using tinymist 🎉
- Quality of life change: codly references no longer invoke the
link
show rules, which leads to consistent styling with other references. - Codly should be compatible with Typst 0.13 as soon as it comes out (or close to ready)
- Add highlight-outset, highlight-clip by @KoviRobi in #51
- Fixed
skips
not resetting after every code blocks #50 - Fixed
skips
adding two lines when line numbers are disabled #52 - Fixed regression on errors for missing block labels #47
- Added the new
smart-skip
feature #49- Automatically add a skip when having discontinuous ranges
- Additionally supports only enabling it in certain "parts" of the code blocks
- [internal] Improved code organization
- [internal] Improved regression tests
New Contributors
Full Changelog: v1.1.1...v1.2.0
Codly v1.1.1
Fixed a critical bug #45
What's Changed
- Update import example in docs to use Codly 1.1.0 by @Aaron-Rumpler in #43
- Fixes to Fonts by @Aaron-Rumpler in #44
Full Changelog: v1.1.0...v1.1.1
Why a second release with the same number?
I had accidentally committed code with the wrong email address, I edited the git history to fix this mistake. So I had to re-publish the release, sorry for any inconvenience.
Codly v1.1.0
As always, refer to the documentation.
Changelog
This is a new release for Codly, find the list of changes below:
Changelog
- Codly now makes use of
raw.line
again, allowing further styling usingshow raw.line
show rules - Fixed spelling & syntax issues in README.md
- Highlights:
- Allows for more than one range of lines to be shown a1e6f84
- Added header and footer arguments #28
- New documentation
- Guide on getting nice icons
- Guide on local states
- More examples
- Improved style and readability
- More powerful relational offsets (i.e offset a code block by the number of lines in another one) #39
- local:
⚠️ Breaking change: No longer supports nested local blocks by default, requiresnested: true
argument⚠️ Breaking change: No longer supports disabling codly by settingenabled: false
- Significantly increased performance (linear speedup with document length, can be >> 10x for long docs)
- Explicit support of nested locals using states
- Significantly increased performance using new argument handling, and improved argument handling
- Disables paragraph justification by default, small visual improvement #26
- Smart indentation now works without line numbers
- Adds a built-in
typst-icon
function for setting thelanguages
argument to have a typst syntax - Fixed line height regression 6032572
- Make full use of Typst v0.12.0 features (i.e
context
,to-dict
, etc.) inset
can now take a dictionary for further customization- Now officially supports per-language settings! (see docs!)
- Improved referencing:
- Shorthand syntax for line referencing:
@my-block:4
- New guide in the documentation
- Shorthand syntax for line referencing:
What's Changed
- Fix some syntax issues in the readme by @JohnMeyerhoff in #23
- Fixes to documentation by @Aaron-Rumpler in #38
New Contributors
- @JohnMeyerhoff made their first contribution in #23
- @Aaron-Rumpler made their first contribution in #38
Full Changelog: v1.0.0...v1.1.0
Codly v1.0.0
First "full" release of codly, feature set can be assumed to be (close to) final until custom types are available in Typst.
Simplified changelog:
- New documentation
- Improved customization:
- Make use of context over old system (locate & styles): closes #20 #18
- Fixed:
- zebra-strip disabling
- incorrect positioning of language box
- Improved handling of complex color fills (i.e gradient & patterns)
- Added highlights: allows highlighting portions of code and (optionally) referencing them, all parameters configurable (stroke, fill, inset, etc.)
- Added line skips: allows creating "jump" in line count, what's inserted by default is
...
, can be customized
- Added annotations: allows annotating a (group of) line(s) and referencing them (optionally)
- Added helper functions:
local
,no-codly
,codly-skip
, etc.