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

FR: callout-metadata for admonition block #261

Closed
efemkay opened this issue Sep 13, 2022 · 0 comments · Fixed by #324
Closed

FR: callout-metadata for admonition block #261

efemkay opened this issue Sep 13, 2022 · 0 comments · Fixed by #324
Labels
Type: Feature New features or options.

Comments

@efemkay
Copy link

efemkay commented Sep 13, 2022

using obsidian built in callout we can specify the callout-metadata by following syntax (as indicated by <metadata>)

> [!<type>|<metadata>]
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla.

can we have similar feature when using admonition block. proposal would be like below, which the metadata text specified will be injected as a div attributes.

```ad-<type> # Admonition type. See below for a list of available types.
metadata:                  # specify any custom metadata

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla.
```

the proposed div attributes would follow callout nomenclature e.g. below (where "metadata" is what we specify in admonition block's above)

<div data-callout="note" data-callout-metadata="metadata" data-callout-fold class="callout admonition admonition-note">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New features or options.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants