Merge pull request #33 from eltos/patch-1
Draft: [Glossy] Typst 0.13 compatibility
This commit is contained in:
5 files changed
+7
-7
No files matched your search
+1
-1
@@ -41,7 +41,7 @@ different goals:
|
||||
### Import the package
|
||||
|
||||
```typst
|
||||
#import "@preview/glossy:0.6.0": *
|
||||
#import "@preview/glossy:0.7.0": *
|
||||
```
|
||||
|
||||
### Defining Glossary Terms
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#import "@preview/valkyrie:0.2.1" as z
|
||||
#import "@preview/valkyrie:0.2.2" as z
|
||||
|
||||
#import "./schemas.typ": *
|
||||
#import "./themes.typ": *
|
||||
@@ -39,7 +39,7 @@
|
||||
if not "short" in entry {
|
||||
panic("Entry must contain a 'short' key")
|
||||
}
|
||||
if type(entry.short) != "string" {
|
||||
if type(entry.short) != str {
|
||||
panic("Entry 'short' must be a string")
|
||||
}
|
||||
if entry.short.trim() == "" {
|
||||
@@ -347,7 +347,7 @@
|
||||
|
||||
// Apply format-term() to get the term
|
||||
let formatted-term = format-term(mode, short-form, long-form)
|
||||
if type(formatted-term) != "string" {
|
||||
if type(formatted-term) != str {
|
||||
// This is because we still need to capitalize the term, and we cannot do
|
||||
// that with content, thus requiring a string here.
|
||||
// TODO: consider if we want to capitalize *before* this. First intuition is
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#import "@preview/valkyrie:0.2.1" as z
|
||||
#import "@preview/valkyrie:0.2.2" as z
|
||||
|
||||
#let dict-schema = z.either(
|
||||
z.string(),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#import "/lib.typ": *
|
||||
#import "@preview/glossarium:0.5.1": *
|
||||
#import "@preview/glossarium:0.5.3": *
|
||||
|
||||
#set page(height: auto, width: 4.5in)
|
||||
#show link: set text(fill: red)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "glossy"
|
||||
version = "0.6.0"
|
||||
version = "0.7.0"
|
||||
entrypoint = "lib.typ"
|
||||
authors = ["Stephen Waits <steve@waits.net>"]
|
||||
license = "MIT"
|
||||
|
||||
Reference in new issue
Block a user