Socket
Book a DemoInstallSign in
Socket

hexo-renderer-typst

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-renderer-typst

Typst renderer plugin for Hexo

0.6.1-rc2
latest
Source
npmnpm
Version published
Weekly downloads
26
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

hexo

FAQs

Package last updated on 23 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.