Skip to content

Commit

Permalink
use tiaoma package to generate qrcode (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Enter-tainer authored Dec 2, 2023
1 parent 52440ac commit 4faf58e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions oi-wiki-export-typst/oi-wiki.typ
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
#import "pymdownx-details.typ": details

#import "@preview/tablex:0.0.5": tablex
#import "@preview/tiaoma:0.1.0"
/* END imports */

/* BEGIN plugins */
#let typst-qrcode-wasm = plugin("./typst_qrcode_wasm.wasm")
/* END plugins */

#let horizontalrule = align(center, block(
sym.ast.op + h(1em) + sym.ast.op + h(1em) + sym.ast.op
Expand Down Expand Up @@ -211,10 +209,7 @@

align(horizon, content)
)
#let qrcode(arg) = image.decode(
str(typst-qrcode-wasm.generate(bytes(arg))),
width: .5in,
)
#let qrcode(arg) = tiaoma.qrcode(arg, width: .4in)

#let tablex-custom(
columns: (),
Expand Down
Binary file removed oi-wiki-export-typst/typst_qrcode_wasm.wasm
Binary file not shown.

0 comments on commit 4faf58e

Please sign in to comment.