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

Markdown Admonitions in Docusaurus #184

Open
jaydm26 opened this issue May 11, 2021 · 2 comments
Open

Markdown Admonitions in Docusaurus #184

jaydm26 opened this issue May 11, 2021 · 2 comments

Comments

@jaydm26
Copy link

jaydm26 commented May 11, 2021

Hello!

Currently, all keywords within the docstring of a Python code (e.g. Args, Returns, Warnings, Raises, Notes, etc.) are rendered as boldface text within the generated markdown file.

Since admonitions are supported in docusaurus, I was hoping for an addition of a feature to allow admonitions like Warnings to be rendered as true admonitions (like here).

@jaydm26 jaydm26 changed the title Markdown Admonitions in Docusaurus v2 Markdown Admonitions in Docusaurus May 11, 2021
@NiklasRosenstein
Copy link
Owner

hey @jaydm26 , could you give an example of what you would like to be able to write syntactically and what the expected rendered output would be in Markdown format? Is this specific to the Pydoc-Markdown documentation format, or Sphinx or Google?

@jaydm26
Copy link
Author

jaydm26 commented May 20, 2021

Sure! Consider the following within a docstring:

Caution: This function is unstable and can produce unexpected results.

What I was hoping to see when this gets converted to markdown is:

:::caution

This function is unstable and can produce unexpected results.

:::

The above is along the lines of admonitions that have been introduced in docusaurus v2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants