When a code block contains <<, the code block will be rendered to the end of the article in edit mode

Steps to reproduce

When a list appears, add a code block containing the characters >> after the shift enter line break, and indent the entire code block to match the list. The code block in edit mode will never stop and continue

  1. test
    # syntax=docker/dockerfile:1
    
  2. HereDoc
    # syntax=docker/dockerfile:1
    FROM ubuntu:22.04
    RUN <<EOF
    echo "Hello" >> /hello
    echo "World!" >> /hello
    EOF
    
  3. test

Did you follow the troubleshooting guide? [Y/N]

YES

Expected result

The code can be stopped normally

Actual result

bug

Environment

SYSTEM INFO:
Obsidian version: v1.5.12
Installer version: v1.5.12
Operating system: Windows 10 Pro 10.0.19045
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 0
Plugins enabled: 0

RECOMMENDATIONS:
none


Additional information

In addition, when the code block is indented, the indentation line on the left in edit mode is not a straight line but broken into two segments. When can this small problem be fixed btw? It looks too inelegant and this problem has persisted for several years. Thanks for your hard work.:heart:
image

Please read carefully, my problem is different from his, my problem is 《When a code block contains <<, the code block will be rendered to the end of the article in edit mode》,To avoid ambiguity, you can change the title and use my modified description

Ahh, yes. I thought that was the catch all topic for code blocks in lists. It seems more like this one:

I changed the topic title per your suggestion.

Well, 2022…anyway, looking forward to the day when it will be repaired, thank you :pray:

1 Like

This is a duplicate of

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.