Skip to content

Callout - Rendering bug in JupyterLab markdown cell #8

@stefansimik

Description

@stefansimik

Bug description

Callout has invalid rendering in JupyterLab markdown cell, when last character is space.

Steps to reproduce

This code causes invalid rendering - the point is the last space at the end of sentence = after "on their own.":

::: {.callout-note icon="tip"}
## Summary in one sentence
`Supervised learning` is a method of creating models where, during the training phase, the models see the correct target value in the data, which they then learn to predict on their own. 
:::

This is result in JupyterLab:

CleanShot 2024-06-05 at 13 14 34@2x

When the last space is removed, it works OK:

::: {.callout-note icon="tip"}
## Summary in one sentence
`Supervised learning` is a method of creating models where, during the training phase, the models see the correct target value in the data, which they then learn to predict on their own.
:::

CleanShot 2024-06-05 at 13 15 54@2x

Expected behavior

One space at the end should not cause rendering issue in JupyterLab.

Actual behavior

One space at the and of text causes invalid rendering in JupyterLab.

Your environment

MacOS Sonoma 14.5
JupyterLab: 4.2.0
JupyterLab extension: jupyterlab-quarto 0.3.3

Quarto check output

Quarto 1.4.551
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.11: OK
      Dart Sass version 1.69.5: OK
      Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.4.551
      Path: /Users/stesim/Applications/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Tex:  (not detected)

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.11.8 (Conda)
      Path: /opt/anaconda3/bin/python
      Jupyter: 5.5.0
      Kernels: skolenie, python3
    
[✓] Checking Jupyter engine render....OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions