question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong rendering of '**foo**

See original GitHub issue

Describe the problem

I’m not sure this is the right place, but I have noticed an issue where '**foo** is rendered in HTML as ”foo, but ’**foo** is fine (rendered as ’foo).

Link to your repository or website

No response

Steps to reproduce

  1. Write a markdown file that has '**foo** ’**foo**.
  2. Render to HTML.
  3. Observe the HTML rendered as: ”foofoo

The version of Python you’re using

No response

Your operating system

No response

Versions of your packages

No response

Additional context

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisjsewellcommented, Dec 5, 2021

Heya, I have indeed reproduced this, by setting the language to fr, and also exactly the same happens in .rst files. So this is part of sphinx’s translation mechanism.

I’m going to close this here then, if thats ok, since I don’t think it is anything that myst-parser can affect. I would suggest maybe opening an issue on https://github.com/sphinx-doc/sphinx if you feel this is incorrect.

Obviously feel free to re-open, if they show that it is a bug in myst-parser thanks

0reactions
davidbrochartcommented, Oct 12, 2021

Sure, this is a sanitized _config.yml:

#######################################################################################
# A default configuration that will be loaded for all jupyter books
# See the documentation for help and more options: 
# https://jupyterbook.org/customize/config.html

#######################################################################################
# Book settings
title                       : foo  # The title of the book. Will be placed in the left navbar.
author                      : bar  # The author of the book
copyright                   : "2021"  # Copyright year to be placed in the footer
logo                        : Jupyter_logo.svg  # A path to the book logo

sphinx:
  config:
    language: 'fr'

# Force re-execution of notebooks on each build.
# See https://jupyterbook.org/content/execute.html
execute:
  execute_notebooks: force

# Define the name of the latex output file for PDF builds
latex:
  latex_documents:
    targetname: baz.tex

# Add a bibtex file so that we can create citations
#bibtex_bibfiles:
#  - references.bib

# Information about where the book exists on the web
repository:
  url: https://github.com/foo/bar  # Online location of your book
#  path_to_book:  # Optional path to your book, relative to the repository root
  branch: main  # Which branch of the repository should be used when creating links (optional)

exclude_patterns:
  - _build
  - __pycache__
  - .pytest_cache
  - "**.ipynb_checkpoints"
  - .githug
  - CONTRIBUTING.md
  - CONDUCT.md

# Add GitHub buttons to your book
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
html:
  use_issues_button: true
  use_repository_button: true
  use_edit_page_button: true
  extra_navbar: Site produit par <a href="https://jupyterbook.org">Jupyter Book</a>

parse:
  myst_enable_extensions:  # default extensions to enable in the myst parser. See https://myst-parser.readthedocs.io/en/latest/using/syntax-optional.html
    - html_image
    # - amsmath
    - colon_fence
    # - deflist
    - dollarmath
    - html_admonition
    - linkify
    # - replacements
    # - smartquotes
    - substitution
Read more comments on GitHub >

github_iconTop Results From Across the Web

Incorrect rendering of blockquotes followed by an hr · Issue #531
So the path to resolving this issue depends on the answer to the following question: Should Example 1's output be the same as...
Read more >
react-hook-form watch has wrong value after rendering select ...
On first render, watchFoo has the value undefined as expected. After calling setFoos it renders again with the drop-down having the value ...
Read more >
Rendering content - Mojolicious::Guides
The renderer will always try to detect the right template, but you can also use the template stash value to render a specific...
Read more >
Test Renderer - React
Create a TestRenderer instance with the passed React element. It doesn't use the real DOM, but it still fully renders the component tree...
Read more >
Django shortcut functions
from django.shortcuts import render def my_view(request): # View code here... return render(request, 'myapp/index.html', { 'foo': 'bar', } ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found