Marktext: Fenced code blocks in lists

Created on 31 May 2018  ·  4Comments  ·  Source: marktext/marktext

Description

Fenced code blocks in lists don't work very well.

Steps to reproduce

  1. Type - to create a list
  2. Type 3 backticks (`) to create a fenced code block
    image
  3. Type some code
    image
  4. Try to add another line to the list

Expected behavior: That I can easily add more list items.

Actual behavior: Doesn't work

Versions

  • Mark Text: v 0.11.42
  • OS: Windows 10
❓ question

All 4 comments

Hi, @stefnotch you can follow these steps to create more list items.

  1. Type - to create a list
  2. Type 3 backticks (`) to create a fenced code block
  3. Type some code
  4. Use arrow down to create a paragraph after code block
  5. Press enter to convert this paragraph to list item.

Can this way solve you problem?

@Jocs Yes, this does work. I expected that clicking with the mouse below the list/code block would also work.

Well, I still have a bug report:

  1. Type - to create a list
  2. Type 3 backticks (`) to create a fenced code block (Don't type a language)
  3. Hit Enter:
    image

Expected: It doesn't create another list item.

Actual: It created another list item

Also, there are some other issues that I ran into while using fenced code blocks with lists, but I have troubles reproducing them.

Expected: It doesn't create another list item.

It is indeed a small bug. input and not input language will cause different results. Can you open another issue about this? So we can track it.

Also, there are some other issues that I ran into while using fenced code blocks with lists, but I have troubles reproducing them.

Scenes that use fenced code blocks in list items are inherently small, and there are sometimes bugs that are not easily discovered.

@Jocs Created a new issue. https://github.com/marktext/marktext/issues/315

Thank you for your help. I can close this one for now. 😄

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ccconnor picture ccconnor  ·  4Comments

AsierRF picture AsierRF  ·  3Comments

davidmichaelhuber picture davidmichaelhuber  ·  3Comments

hrvojegolcic picture hrvojegolcic  ·  3Comments

acostalima picture acostalima  ·  3Comments