citynetwork / markdown-xblock

An XBlock enabling Open edX course authors to maintain content in Markdown.
GNU Affero General Public License v3.0
3 stars 3 forks source link

Code blocks with bash formatting specified cause breakage of entire unit without ability to recover #30

Closed throwaway-a closed 9 months ago

throwaway-a commented 2 years ago

If I use

-```bash
-```

(Remove the -, I just don't know how to write the code block syntax within a code block without it prematurely ending it) This causes the following error to appear

image

If I then reload the page, there's no more capability to add/remove components from the unit, so there's no recourse except to delete the entire unit.

mrtmm commented 10 months ago

@throwaway-a thanks for the report. This is long overdue but I have been trying to reproduce this issue now, however with no luck.

Code blocks (with or without bash) seem to work fine for me. Even when I removed code-friendly and fenced-code-blocks from the extras it does not break the component as you described.

I acknowledge that this was reported a while ago; if you are still running into this issue please share more information about your setup and configurations and I'll try to reproduce the it.

fghaas commented 9 months ago

Closing this issue after a month of inactivity since we have reason to believe that the XBlock is working correctly (at least in its current releases). If this issue resurfaces, please comment here and we'll reopen.