Trianan / TristinManson-BugReports

Assignment #5 "Software Bug Reporting using GitHub" for Software Engineering Fundamentals (PROG1350).
0 stars 0 forks source link

[BUG] Code-Block Bug - Obsidian - 26/03/2024 #2

Open Trianan opened 6 months ago

Trianan commented 6 months ago

[BUG] Software Obsidian (v. 1.5.11)

Expected behaviour Text following a code block should always display as regular text, unless in an explicit code block itself.

Describe the bug Text at the same indentation-level following a code block displays as regular text; however, if the text is indented, it automatically displays as if it were in a code-block like this.

To Reproduce Steps to reproduce the behaviour:

  1. Open a note in Obsidian.
  2. Create a code block with a pair of triple back-tick characters like so: ```\<some code>```.
  3. Position your text cursor under the code-block you've created.
  4. Press \<TAB> to indent your cursor by one level.
  5. Enter some text; it should automatically be put in a code-block.

Screenshots Text with no indentation under a code-block: bugReport_OBSIDIAN_1

Indentation under a code block; notice no characters were typed to indicate a code block on this line: bugReport_OBSIDIAN_2

Indented text shown as code under a code-block, without any indicating back-tick characters: bugReport_OBSIDIAN_3

Device (please complete the following information):

Additional context I have noticed that this is theme-independent as well, as I replicated the bug with different themes enabled.

Trianan commented 6 months ago

Added "Priority: Medium" label; this can be worked around by adding some normal or heading text at the lowest-indentation level, which is typically what one would do in most cases, before the indented regular text. However, code-blocks with triple back-ticks cannot be indented, so if a user needs a code-block inside of an indented list, this makes continuing the list at that indentation level without interruption impossible.