Luke Aschenbrenner

New features

Mar 24, 2024
astrofeature astrofeature
2 Minutes
289 Words

Support Remixicon

:i{class="ri-poker-hearts-fill"}
:i{class="ri-poker-clubs-fill"}

Support Button

:btn[Google]{href="https://www.google.com"}

Google

:::btn{href="#"}
:i{class="ri-share-box-line"} Open in new tab
:::
Open in new tab

Support Github Card

::github{repo="cirry/astro-yi"}
Waiting for api.github.com...
Waiting
Waiting
Waiting

Support collapse

Terminal window
:::collapse
Hello World!
:::
Open

Hello World!

Support admonitions

:::tip[Customized Title]
hello world
:::
:::note
note
:::
:::caution
caution
:::
:::danger
danger
:::

Support mermaid

Use:

  • start with ```mermaid
  • end with ```
  • set markdown frontmatter mermaid: true.

Mermaid Code:

mermaid.md
classDiagram
note "From Duck till Zebra"
Animal <|-- Duck
note for Duck "can fly\ncan swim\ncan dive\ncan help in debugging"
Animal <|-- Fish
Animal <|-- Zebra
Animal : +int age
Animal : +String gender
Animal: +isMammal()
Animal: +mate()
class Duck{
+String beakColor
+swim()
+quack()
}
class Fish{
-int sizeInFeet
-canEat()
}
class Zebra{
+bool is_wild
+run()
}

Result:

classDiagram
    note "From Duck till Zebra"
    Animal <|-- Duck
    note for Duck "can fly\ncan swim\ncan dive\ncan help in debugging"
    Animal <|-- Fish
    Animal <|-- Zebra
    Animal : +int age
    Animal : +String gender
    Animal: +isMammal()
    Animal: +mate()
    class Duck{
        +String beakColor
        +swim()
        +quack()
    }
    class Fish{
        -int sizeInFeet
        -canEat()
    }
    class Zebra{
        +bool is_wild
        +run()
    }

Support mathjax

  • set markdown frontmatter mathjax: true.

Block Mode

Mathjax.md
---
mathjax: true
---
hello!
$$ \sum_{i=0}^N\int_{a}^{b}g(t,i)\text{d}t $$
hello!

hello! $$ \sum_{i=0}^N\int_{a}^{b}g(t,i)\text{d}t $$ hello!

Inline Mode

Mathjax.md
---
mathjax: true
---
hello! $ \sum_{i=0}^N\int_{a}^{b}g(t,i)\text{d}t $ hello!

hello! $ \sum_{i=0}^N\int_{a}^{b}g(t,i)\text{d}t $ hello!

Integration with Expressive Code

For more usage, please refer to the official website expressive-code.

line-markers.js
function demo() {
console.log('this line is marked as deleted')
// This line and the next one are marked as inserted
console.log('this is the second inserted line')
return 'this line uses the neutral default marker type'
}

Code folding is supported by default

var myArr = [1, 2]
console.log(myArr)
var myObj = {a: 1, b: 2}
for (let key of myArr) {
console.log(key)
}
var it = myArr[Symbol.iterator]()
it.next() // {value: 1, done: false}
// VM704:12 Uncaught TypeError: myObj is not iterable
for (let key of myObj) {
console.log(key)
}
Title:New features
Author:Luke
Pulbished:Mar 24, 2024
Copyright 2025
Sitemap