Skip to content

Commit 3659d86

Browse files
authored
feat(enhanced-mark): added new package (#143)
* feat(enhanced-mark): added new package * fix(og-image): should not use title as file name * style: universal available
1 parent 6358806 commit 3659d86

19 files changed

Lines changed: 198 additions & 19 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ To find out the integration name, there is a list of integrations below.
5555
- [Blinking highlight targeted heading (for VitePress)](./packages/vitepress-plugin-highlight-targeted-heading/README.md)
5656
- [Page properties (for VitePress)](./packages/vitepress-plugin-page-properties/README.md)
5757
- [Previewing image (social media card) generation](./packages/vitepress-plugin-og-image/README.md)
58+
- [Enhanced `<mark>` element](./packages/vitepress-plugin-enhanced-mark/README.md)
5859

5960
## How to develop
6061

README.zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ ni @nolebase/<integration-name> -D
5555
- [闪烁高亮当前的目标标题(VitePress 插件)](./packages/vitepress-plugin-highlight-targeted-heading/README.md)
5656
- [页面属性(VitePress 插件](./packages/vitepress-plugin-page-properties/README.md)
5757
- [预览图片(社交媒体卡片)生成](./packages/vitepress-plugin-og-image/README.md)
58+
- [`<mark>` 元素增强](./packages/vitepress-plugin-enhanced-mark/README.md)
5859

5960
## 如何开发
6061

docs/.vitepress/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export const sidebars: Record<string, DefaultTheme.Sidebar> = {
5959
{ text: 'Changelog & File history', link: '/pages/en/integrations/vitepress-plugin-git-changelog/' },
6060
{ text: 'Page properties', link: '/pages/en/integrations/vitepress-plugin-page-properties/' },
6161
{ text: 'Previewing image (social media card) generation', link: '/pages/en/integrations/vitepress-plugin-og-image/' },
62+
{ text: 'Enhanced &lt;mark&gt; elements', link: '/pages/en/integrations/vitepress-plugin-enhanced-mark/' },
6263
],
6364
},
6465
],
@@ -140,6 +141,7 @@ export const sidebars: Record<string, DefaultTheme.Sidebar> = {
140141
{ text: '变更日志 及 文件历史', link: '/pages/zh-CN/integrations/vitepress-plugin-git-changelog/' },
141142
{ text: '页面属性', link: '/pages/zh-CN/integrations/vitepress-plugin-page-properties/' },
142143
{ text: '预览图片(社交媒体卡片)生成', link: '/pages/zh-CN/integrations/vitepress-plugin-og-image/' },
144+
{ text: '&lt;mark&gt; 元素增强', link: '/pages/zh-CN/integrations/vitepress-plugin-enhanced-mark/' },
143145
],
144146
},
145147
],

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@nolebase/markdown-it-element-transform": "workspace:^",
1616
"@nolebase/ui": "workspace:^",
1717
"@nolebase/unconfig-vitepress": "workspace:^",
18+
"@nolebase/vitepress-plugin-enhanced-mark": "workspace:^",
1819
"@nolebase/vitepress-plugin-enhanced-readabilities": "workspace:^",
1920
"@nolebase/vitepress-plugin-git-changelog": "workspace:^",
2021
"@nolebase/vitepress-plugin-highlight-targeted-heading": "workspace:^",

docs/pages/en/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ Nólëbase Integrations project provides a variety of integrations, plugins, com
8585
</template>
8686
</IntegrationCard>
8787

88+
<IntegrationCard type="vitepress" title="Enhanced <mark> elements" package="vitepress-plugin-enhanced-mark">
89+
<template v-slot:badge>
90+
<Badge type="warning" text="Beta" />
91+
</template>
92+
</IntegrationCard>
93+
8894
<IntegrationCard type="obsidian" title="UnoCSS" package="obsidian-plugin-unocss">
8995
<template v-slot:badge>
9096
<Badge type="warning" text="Beta" />

docs/pages/en/integrations/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ Nólëbase Integrations project provides a variety of integrations, plugins, com
7070

7171
<br />
7272

73+
<IntegrationCard type="vitepress" title="Enhanced <mark> elements" package="vitepress-plugin-enhanced-mark">
74+
<template v-slot:badge>
75+
<Badge type="warning" text="Beta" />
76+
</template>
77+
</IntegrationCard>
78+
79+
<br />
80+
7381
<IntegrationCard type="obsidian" title="UnoCSS" package="obsidian-plugin-unocss">
7482
<template v-slot:badge>
7583
<Badge type="warning" text="Beta" />
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Enhanced `<mark>` <mark>elements</mark> <Badge type="warning" text="Beta" />
2+
3+
::: warning 🚧 Constructing
4+
Nice to meet you! But sorry, this page is still under construction. If you don’t find the information you are interested in, you can first find the content you are interested in in the navigation in the sidebar to start reading.
5+
:::
6+
7+
This is a paragraph that contains <mark>highlighted text with a animated yellow background</mark>.

docs/pages/zh-CN/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ Nólëbase 集成项目提供多种不同的集成、插件、组件和库来方
8585
</template>
8686
</IntegrationCard>
8787

88+
<IntegrationCard type="vitepress" title="<mark> 元素增强" package="vitepress-plugin-enhanced-mark">
89+
<template v-slot:badge>
90+
<Badge type="warning" text="Beta 测试" />
91+
</template>
92+
</IntegrationCard>
93+
8894
<IntegrationCard type="obsidian" title="UnoCSS" package="obsidian-plugin-unocss">
8995
<template v-slot:badge>
9096
<Badge type="warning" text="Beta 测试" />

docs/pages/zh-CN/integrations/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ Nólëbase 集成项目提供多种不同的集成、插件、组件和库来方
7070

7171
<br />
7272

73+
<IntegrationCard type="vitepress" title="<mark> 元素增强" package="vitepress-plugin-enhanced-mark">
74+
<template v-slot:badge>
75+
<Badge type="warning" text="Beta 测试" />
76+
</template>
77+
</IntegrationCard>
78+
79+
<br />
80+
7381
<IntegrationCard type="obsidian" title="UnoCSS" package="obsidian-plugin-unocss">
7482
<template v-slot:badge>
7583
<Badge type="warning" text="Beta 测试" />
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# `<mark>` <mark>元素增强</mark> <Badge type="warning" text="Beta 测试" />
2+
3+
::: warning 🚧 施工中
4+
很高兴见到你!但很抱歉,这个页面还在施工中,如果没有找到你感兴趣的信息,你可以先在侧边栏的导航中寻找你感兴趣的内容来开始阅读
5+
:::
6+
7+
这是一个包含 <mark>带有动画黄色背景的高亮文本</mark> 的段落。

0 commit comments

Comments
 (0)