0.2.2 (April 27, 2024)
Documentation
Add the showcase page! If your are building something cool with Markdown Genji, please add it here!
Genji Runtime
Add page.emit and page.on to communicate between the selected SSG and genji-runtime.
watch(
() => isDark.value,
() => {
page.emit("dark", isDark.value);
},
);
Genji Theme Vitepress
Add dark signal, which helps watch if the current theme is set to dark mode. (#194)
```js eval
(() => {
const div = document.createElement("div");
div.style.width = "100px";
div.style.height = "100px";
div.style.background = dark ? "#fff" : "#000";
return div;
})();
```
This produces:
Full Changelog: 0.2.1...0.2.2