Skip to content

Incorrect rendering of display math environments in block quotes. #3118

@pazner

Description

@pazner

Describe the current behavior

The following example of a LaTeX display environment in a block quote does not render properly:

> This is a block quote
> $$
>     y = m x + b
> $$
> with an equation.

image

Describe the expected behavior

It should render like this (this is how it is rendered with jupyter nbconvert --to html, in GitHub, VSCode, etc.):

image

What web browser you are using

Tested in Safari and Chrome

Additional context

Notebook to reproduce
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "> This is a block quote\n",
    "> $$\n",
    ">     y = m x + b\n",
    "> $$\n",
    "> with an equation."
   ]
  }
 ],
 "metadata": {
  "language_info": {
   "name": "python"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions