
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
github.com/Vaelatern/mdbook-d2-go
Tiny preprocessor that uses d2
as a library to inline processed SVG in your mdBook documents.
go build
then copy the file to your $PATH
so mdBook
can find it
Or you can docker build . -t mdbook-d2-go
and put a COPY --from=mdbook-d2-go:latest /mdbook-d2-go .
in whatever Dockerfile runs the mdBook
code.
In your book.toml
:
[preprocessor.d2-go]
layout = "elk"
theme_id = 0
Check out the example-with-d2
folder for a working mdbook example.
Your SVGs will be full size when loaded in mdbook by default.
Fortunately, a small mdbook theme fixes it:
$ cat theme/head.hbs
<style type="text/css">
svg {
width: inherit;
height: inherit;
}
</style>
d2
claims the element id d2-svg
suggesting that two or more of these on the same page may lead to misbehaviours.OpenBSD-style ISC
FAQs
Unknown package
Did you know?
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.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.