Monorepo for Tangled โ€” https://tangled.org

[Bug] Does not render lines starting with \ #206

closed
opened by vielle.dev edited

Lines starting with \ are not rendered properly in markdown.

Steps to Reproduce:#

  1. Create a .md file
  2. Add some text.
  3. Add a line which starts with \
  4. Commit changes and push to tangled

Expected Result:#

The line starting with \ renders with a \ or escaped charager

Actual Result:#

The line is rendered as a <math> element

Live example:#

See Here (lines 67 and 80 should be rendered)

Example#

There is text here

\This line doesnt render

There is text here

There is text here

\This line doesnt render

There is text here

Seems to be rendering as <math> which is weird. Doesn't contain any of the text inside it.

Assuming you're following Github Flavoured Markdown, I can't see anything that indicates a <math> element should show up instead of of a *

thanks for the report! yeah this is because of our recent mathML addition. it is supposed to only detect delimiters such as \( but it seems to have falsely triggered on \*. i will have a look and fix this!

Testing when it triggers

\test

\test

\test

\test

\ test

\ test

\ test

\ test

\*test

*test

\*test

*test

\* test

* test

\* test

* test

Seems to be any \ at the start of a line, with and without whitespace (whitespace was stripped from the code blocks lmao)

sign up or login to add to the discussion
Labels

None yet.

area

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:4zht3z4caxwrw3dlsybodywc/sh.tangled.repo.issue/3lyik3qtbsk22