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

Embedded "comment" shortcode #13010

Closed
jmooring opened this issue Nov 4, 2024 · 2 comments · Fixed by #13011
Closed

Embedded "comment" shortcode #13010

jmooring opened this issue Nov 4, 2024 · 2 comments · Fixed by #13011
Assignees
Milestone

Comments

@jmooring
Copy link
Member

jmooring commented Nov 4, 2024

Although I dislike embedding opinionated shortcodes, given the changes in v0.137.0 (raw HTML warnings) a comment shortcode might make sense:

{{- $noop := .Inner -}}

Obviously this is not opinionated.

I'm in the process of writing a tips and trick article for the forum, and part of that document explains what to do instead of using HTML comments in Markdown. So instead of each site and theme author having to reinvent the wheel, perhaps we should embed one.

@jmooring jmooring changed the title Embedded "comment" shortoce Embedded "comment" shortcode Nov 4, 2024
@bep bep added this to the v0.137.1 milestone Nov 4, 2024
@bep
Copy link
Member

bep commented Nov 4, 2024

we should embed one.

We should.

@Lruihao
Copy link

Lruihao commented Nov 7, 2024

@jmooring @bep
Hey guys, I would like to know if it is possible to support an extended markdown format like obsidian comments.

This is an %%inline%% comment.

%%
This is a block comment.

Block comments can span multiple lines.
%%

@gohugoio gohugoio locked and limited conversation to collaborators Nov 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants