Skip to content

Commit

Permalink
Fix package manifest and refactor for kebab-case
Browse files Browse the repository at this point in the history
  • Loading branch information
sgomezsal committed Dec 30, 2024
1 parent 464f1cc commit 6369e05
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
Binary file modified packages/preview/typ2anki/0.1.0/src/lib.pdf
Binary file not shown.
27 changes: 14 additions & 13 deletions packages/preview/typ2anki/0.1.0/src/lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,41 @@

#let card(
id: "",
Q: "",
A: "",
q: "",
a: "",
..args
) = {
let args = arguments(
type: "basic",
container: false,
show_labels: false,
show-labels: false,
..args
)

if args.at("container") == false {
if args.at("show_labels") == true {
if args.at("show-labels") == true {
context [
Q: #Q \
A: #A
q: #q \
a: #a
]
} else {
context [
#Q \
#A
#q \
#a
]
}
} else {
if args.at("show_labels") == true {
if args.at("show-labels") == true {
card-container[
Q: #Q \
A: #A
q: #q \
a: #a
]
} else {
card-container[
#Q \
#A
#q \
#a
]
}
}
}

2 changes: 1 addition & 1 deletion packages/preview/typ2anki/0.1.0/typst.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ license = "MIT"
description = "Convert Typst files into Anki cards automatically."
repository = "https://github.com/sgomezsal/typst2anki"
keywords = ["anki", "flashcards", "typst", "automation"]
categories = ["Integration", "Utility"]
categories = ["integration", "utility"]
compiler = "0.12.0"

0 comments on commit 6369e05

Please sign in to comment.