Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎉 Feat: support extended alert syntax compatible with Obsidian Callouts #519

Merged
merged 5 commits into from
Oct 10, 2024

Conversation

Lruihao
Copy link
Member

@Lruihao Lruihao commented Oct 8, 2024

Change hugo version to ^0.134.1.

Preview Demo

  • Refactor admonition shortcode: add todo type and aliases type
  • Support extended alert syntax compatible with Obsidian Callouts
  • Customize Alerts support

Resolves #518
Resolves #406


If hugo issue gohugoio/hugo#12913 is resolved, remove the dirty hacks in the theme.

// BUG of Hugo https://github.com/gohugoio/hugo/issues/12913
&:has(> p:only-child:empty) {
display: none;
}

{{- /* === Dirty hack === */ -}}
{{- /* BUG of Hugo https://github.com/gohugoio/hugo/issues/12913 */ -}}
{{- $title := replaceRE "</([a-zA-Z]+)$" "</$1>" .AlertTitle -}}
{{- /* === Dirty hack === */ -}}

…bsidian Callouts

refactor admonition shortcode: add todo type and aliases type
change min hugo version: 0.134.0
@Lruihao Lruihao added the enhancement New feature or request label Oct 8, 2024
@Lruihao Lruihao added this to the v0.3.x milestone Oct 8, 2024
@Lruihao Lruihao self-assigned this Oct 8, 2024
Copy link

vercel bot commented Oct 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fixit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2024 2:06am

@Lruihao Lruihao requested a review from a team October 10, 2024 02:55
@Lruihao Lruihao merged commit f738e4a into dev Oct 10, 2024
2 checks passed
@Lruihao Lruihao deleted the obsidian-callouts branch October 10, 2024 02:57
Lruihao added a commit that referenced this pull request Dec 25, 2024
🐛 Fix: blockquote render hook text parsing (#519)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[FEATURE] Support blockquote extended syntax compatible with Obsidian
1 participant