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

Tables might be broken? #22

Closed throwaway-a closed 2 years ago

throwaway-a commented 3 years ago

When I put in

| Syntax      | Description |
| ----------- | ----------- |
| Header      | Title       |
| Paragraph   | Text        |

to a markdown box in open edx, while it does turn into a roughly space-deliminated table-looking thing, there doesn't appear to be any bars between table entries like I would expect. (And like I see here on github apparently.) Is this your expectation as well?

mrtmm commented 2 years ago

Closing this, as tables are not really broken.

Additionally, in the linked PR #26, we added some basic CSS to match the tables to the current raw-HTML XBlock tables but it's possible to style it to your liking via custom theme/brand.

To get a table that looks like the one in the above comment, you'll need to use code formatting (much like you do here in GitHub), for example, if you add the following in Studio:

Screen Shot 2022-07-21 at 14 12 27

you'll see the following in the LMS:

Screen Shot 2022-07-21 at 14 12 15

I hope this helps!

throwaway-a commented 2 years ago

Confirmed this worked for me. Thanks!