196 字
1 分钟
浏览量
Markdown Extended Features

GitHub Repository Cards#

You can add dynamic cards that link to GitHub repositories, on page load, the repository information is pulled from the GitHub API.

Benzyl-titanium
/
fuwari
Waiting for api.github.com...
Waiting...
00K
0K
0K

Create a GitHub repository card with the code ::github{repo="<owner>/<repo>"}.

::github{repo="Benzyl-titanium/fuwari"}

Gitlab Repository Cards#

BianTaiLAB
/
NPSdose
Waiting for gitlab.com API...
Waiting...
0
0
no-license

Create a GitHub repository card with the code ::gitlab{repo="<owner>/<repo>"}.

::gitlab{repo="BianTaiLAB/NPSdose"}

Admonitions#

Following types of admonitions are supported: note tip important warning caution

NOTE

Highlights information that users should take into account, even when skimming.

TIP

Optional information to help a user be more successful.

IMPORTANT

Crucial information necessary for users to succeed.

WARNING

Critical content demanding immediate user attention due to potential risks.

CAUTION

Negative potential consequences of an action.

Basic Syntax#

:::note
Highlights information that users should take into account, even when skimming.
:::

:::tip
Optional information to help a user be more successful.
:::

Custom Titles#

The title of the admonition can be customized.

MY CUSTOM TITLE

This is a note with a custom title.

:::note[MY CUSTOM TITLE]
This is a note with a custom title.
:::

GitHub Syntax#

[!TIP] > The GitHub syntax is also supported.

> [!NOTE]
> The GitHub syntax is also supported.

> [!TIP]
> The GitHub syntax is also supported.

smilesDrawer#

C(C1=CC=CC=C1)[Ti](CC1=CC=CC=C1)(CC1=CC=CC=C1)CC1=CC=CC=C1
```smiles
C(C1=CC=CC=C1)[Ti](CC1=CC=CC=C1)(CC1=CC=CC=C1)CC1=CC=CC=C1
```
C(C1=CC=CC=C1)[Ti](CC1=CC=CC=C1)(CC1=CC=CC=C1)CC1=CC=CC=C1
<div class="smiles">C(C1=CC=CC=C1)[Ti](CC1=CC=CC=C1)(CC1=CC=CC=C1)CC1=CC=CC=C1</div>

size#

// public/js/chemdraw.js
const options = { width: 150, height: 150 };

add script#

<script>
  if (window.renderSmiles) {
    setTimeout(window.renderSmiles, 100);
  }
</script>
Markdown Extended Features
https://tibn4.pages.dev/posts/example/markdown-extended/
作者
Benzyl titanium
发布于
2024-05-01
许可协议
CC BY-NC-SA 4.0