Having inline code in chapter title outputs additional strange text in top left corner
See original GitHub issueDescribe the bug
I’m currently running 0.7.0b. I have a chapter in Zero 2 Data 8 called “The datascience
Package” (link). Having inline code in the chapter title causes this strange text to appear on the page (see below).
To Reproduce Steps to reproduce the behavior:
- Changing the working directory to root
zero-to-data-8
- Running
jupyter-book build .
- Looking at the file locally.
Expected behavior Building should not have the upper left text to show up.
Link to book repository: https://github.com/data-8/zero-to-data-8
Environment (please complete the following information):
- Python Version 3.7
- Output of
jupyter-book --version
: 0.7.0b
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
R Markdown Syntax: Headings & Lists - UCSB Carpentry
First Things First - Line Breaks. It seems strange to have to talk about line breaks when writing text, but this is very...
Read more >4 R Markdown - Getting used to R, RStudio, and R Markdown
An introduction into using R, RStudio, and R Markdown for new users.
Read more >first-line - CSS: Cascading Style Sheets - MDN Web Docs
The ::first-line CSS pseudo-element applies styles to the first line of a block-level element.
Read more >Inline Code - R Markdown - RStudio
Inline Code. Code results can be inserted directly into the text of a . ... As a result, inline output is indistinguishable from...
Read more >HTML and CSS Tutorial - Nanyang Technological University
</strong> . There are two types of elements: Container Element: A container element has an opening tag <tag-name> that ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
have a fix for this in the SBT here: https://github.com/executablebooks/sphinx-book-theme/pull/126...I’m still not sure if this is a bug in the parser though
Alright I figured out where the issue is, but I’m thinking this could be myst-parser bug or it could be expected Sphinx behavior.
Right here, we set the title of the page: https://github.com/executablebooks/sphinx-book-theme/blob/master/sphinx_book_theme/layout.html#L17
but if there is formatting in a title, then the HTML for the title gets included in the
title
variable:E.g. if I make the theme title
The `Sphinx Book` theme
, thentitle
equals:This is causing the second half of the title to spill out into the page body