0.5.5-rc4 • Published 5 months ago
hexo-renderer-typst v0.5.5-rc4
hexo-renderer-typst
Typst renderer plugin for Hexo.
Installation
Install Hexo dependencies:
npm install @myriaddreamin/typst.ts @myriaddreamin/typst-ts-renderer @myriaddreamin/typst-ts-node-compiler
npm install hexo-renderer-typst
Caution: You must algin the version of all of the above packages.
Font assets
Currently it is not configurable. Please put your font assets in one of following directory.
fonts
assets/fonts
asset/fonts
Target-aware compilation
The plugin will set the sys.inputs.x-target
to web
. You can configure your template with the variable:
/// The default target is _pdf_.
/// The compiler will set it to _web_ when rendering a dynamic layout.
///
/// Example:
/// ```typc
/// #let is-web-target() = target.starts-with("web")
/// #let is-pdf-target() = target.starts-with("pdf")
/// ```
#let target = sys.inputs.at("x-target", default: "pdf")
#show: it => {
if target.starts-with("web") {
// configure stuff for web
} else {
// configure stuff for pdf
}
it
}
HTML export (experimental)
The post with .html.typ
extension will be rendered by the experimental html exporter. The plugin will try to convert the typst template to HTML.
0.5.4
6 months ago
0.5.3
6 months ago
0.5.0
7 months ago
0.5.5-rc4
5 months ago
0.5.2
6 months ago
0.5.0-rc6
12 months ago
0.5.0-rc7
11 months ago
0.4.0-rc9
2 years ago
0.4.1
2 years ago
0.4.0-rc11
2 years ago
0.4.0-rc10
2 years ago
0.4.0-rc8
2 years ago
0.4.0-rc7
2 years ago
0.4.0-rc6
2 years ago
0.4.0-rc5
2 years ago
0.4.0-rc4
2 years ago
0.4.0-rc3
2 years ago
0.4.0-rc2
2 years ago
0.4.0-rc1
2 years ago
0.3.0
2 years ago
0.2.3
2 years ago
0.2.1
2 years ago