Skip to content

Commit

Permalink
0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
8LWXpg committed Dec 26, 2023
1 parent c9ed716 commit c3b8456
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog 📝

## [0.6.1] - 2023-12-26

### Changed

* Changed default foreground color name to `default-fg`
* Slightly reduce pdf size by removing default box fill

## [0.6.0] - 2023-12-06

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ contribution is welcomed!
## Usage

```typst
#import "@preview/ansi-render:0.6.0": *
#import "@preview/ansi-render:0.6.1": *
#ansi-render(
string,
Expand Down
3 changes: 3 additions & 0 deletions ansi-render.typ
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,9 @@
}
if m.ul != none { option.ul = m.ul }
if m.ol != none { option.ol = m.ol }
// slightly reduce pdf size by removing default box fill
if option.bg.fill == theme.default-bg { option.bg.fill = none }
if option.text.fill == none { option.text.fill = theme.default-bg }

// workaround for trailing whitespace with under/overline
str = str.replace(regex("([ \t]+)$"), m => m.captures.at(0) + "\u{200b}")
Expand Down
Binary file modified test/demo.pdf
Binary file not shown.
Binary file modified test/test.pdf
Binary file not shown.
Binary file modified test/themes.pdf
Binary file not shown.
3 changes: 2 additions & 1 deletion test/themes.typ
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#import "../ansi-render.typ": *
#set document(date: none)
#set page(width: auto, height: auto)

#let preview = ansi-render.with(read("color.txt"), size: 8pt, inset: 5pt, radius: 3pt)
#let preview = ansi-render.with(read("color.txt"), inset: 5pt, radius: 3pt)

= List of built-in themes
== VSCode
Expand Down
2 changes: 1 addition & 1 deletion typst.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ansi-render"
version = "0.6.0"
version = "0.6.1"
entrypoint = "ansi-render.typ"
authors = ["8LWXpg"]
license = "MIT"
Expand Down

0 comments on commit c3b8456

Please sign in to comment.