Skip to content

Commit 52fb735

Browse files
committed
dep: My version of markdown-it-obsidian-callouts
1 parent 8c82780 commit 52fb735

File tree

6 files changed

+26
-12
lines changed

6 files changed

+26
-12
lines changed

.vitepress/theme/callout.css

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Color about
33
*/
44
:root {
5+
--bold-modifier: 200;
56
--line-height-tight: 1.3;
67
--callout-border-width: 0px;
78
--callout-border-opacity: 0.25;
@@ -93,6 +94,12 @@ details.callout .callout-title {
9394
color: var(--callout-title-color);
9495
}
9596

97+
.callout .callout-title .callout-title-inner b,
98+
strong {
99+
--font-weight: calc(var(--callout-title-weight) + var(--bold-modifier));
100+
font-weight: var(--font-weight);
101+
}
102+
96103
.callout .callout-title .callout-fold {
97104
background-color: rgb(var(--callout-color));
98105
mask-image: var(--callout-collapse-icon);

.vitepress/theme/callout.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.vitepress/theme/callout.scss

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Color about
33
*/
44
:root {
5+
--bold-modifier: 200;
56
--line-height-tight: 1.3;
67
--callout-border-width: 0px;
78
--callout-border-opacity: 0.25;
@@ -108,6 +109,12 @@ html[data-theme="dark"] #app {
108109
--font-weight: var(--callout-title-weight);
109110
font-weight: var(--font-weight);
110111
color: var(--callout-title-color);
112+
113+
b,
114+
strong {
115+
--font-weight: calc(var(--callout-title-weight) + var(--bold-modifier));
116+
font-weight: var(--font-weight);
117+
}
111118
}
112119
}
113120

@@ -152,4 +159,3 @@ html[data-theme="dark"] #app {
152159
--callout-icon: quote-glyph;
153160
}
154161
}
155-

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@nolebase/vitepress-plugin-inline-link-preview": "^2.5.0",
2727
"markdown-it-mark": "^4.0.0",
2828
"markdown-it-mathjax3": "^4.3.2",
29-
"markdown-it-obsidian-callouts": "^0.2.6",
29+
"markdown-it-obsidian-callouts": "github:mdrkrg/markdown-it-obsidian-callouts#f728d77ec55b9596bb9e4e3e48837a4d1d6e6230",
3030
"mermaid": "^11.2.1",
3131
"vitepress": "^1.3.4",
3232
"vitepress-plugin-mermaid": "^2.0.17",

pages/markdown-examples.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -82,23 +82,23 @@ This is a details block.
8282

8383
The following uses `markdown-it-obsidian-callout`, and I have [my own contributions](https://github.com/ebullient/markdown-it-obsidian-callouts/pull/62)
8484

85-
> [!example]+ This is an example
85+
> [!example]+ **This is an example**
8686
> I'm hidden!
8787
88-
> [!summary]- This is a summary
88+
> [!summary]- ***This is a summary***
8989
> Oh now you see me
9090
> > [!info]- This is an info
9191
> > I'm even more hidden
9292
93+
> [!example] ==With `markdown-it-mark` (plugin aware)==
94+
9395
> [!NOTE]+
9496
> Hello World!
9597
> ~~~ad-warning
9698
> title: a warning
9799
> This is a nested warning callout
98100
> ~~~
99101
100-
> [!example] Without content (originally buggy)
101-
102102
> [!summary] This is a summary without details
103103
> I'm a plain callout
104104

pnpm-lock.yaml

+6-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)