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

"Strong" text is not formatted as bold in figure or figure-md directives #832

Open
72757373656c6c opened this issue Apr 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@72757373656c6c
Copy link

72757373656c6c commented Apr 10, 2024

Describe the bug

context
Please take a look at the example in either of the links below. They will illustrate the issue.

  1. https://jupyterbook.org/en/stable/content/figures.html#markdown-figures.

    Source: This is a caption in **Markdown**!
    Expect: This is a caption in Markdown!
    Instead: This is a caption in Markdown!

  2. https://myst-parser.readthedocs.io/en/latest/syntax/images_and_figures.html#id2

    Source: This is a caption in __*Markdown*__
    Expect: This is a caption in Markdown
    Instead: This is a caption in Markdown

There is markdown syntax for bold but the html/css output is not rendered as bold.

expectation
I expected the word "Markdown" to be bold in the example.

bug
But instead the word "Markdown" was not bold in the example.

No errors.

I found bug #122, but this is specific to the various figure directives.

problem
This is a problem for people using the figure directives and expecting that markdown bold text to be rendered bold.

The font-weight for strong is not correct when under the figure figcaption tags.

Reproduce the bug

Include bold text in a figure or figure-md directive. See above.

List your environment

sphinx-book-theme 1.1.2
pydata-sphinx-theme 0.15.2
myst-parser 2.0.0
Sphinx 7.2.6

@72757373656c6c 72757373656c6c added the bug Something isn't working label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant