Formatting problem when importing Github pages posts (embedded Discourse)

(oblio) #1

Hi folks,

I’m having a problem with broken formatting when importing posts from my blog in the forum.


The huge images are related to: Emoji are huge when embedding, which should be fixed.

However, look at the “Honorable mentions” section. It should be a Markdown table but it’s all garbled up.

Also, after “If you want to read the rest of the articles, here is the full list:” there should be an unordered list of links. Which is gone from the import.

Does the import only take headers, paragraphs, links and images? Everything else seems to be gone :frowning:

For reference, this is how the article looked originally: HearthCraft Key Cards: common neutral cards · Blog

(Jeff Atwood) #2

markdown tables do not exist in Discourse.

(oblio) #3

Ok, good to know.

But lists are not supported? :frowning:

(Jeff Atwood) #4

You might test by manually pasting in the GitHub Page content into a Discourse reply to see what’s supported, etc.

(oblio) #5

I've checked. At least for the lists I think it's a bug. I've pasted the Markdown content of this:

and created a test topic.

The links are gone, the lists are gone, see here:

@atwood, should I post this as a bug? I understand that the tables aren't supported, but lists and links are pretty basic :slightly_smiling:

(Jeff Atwood) #6

Let’s see, pasting in raw

This article is a part of the HearthCraft series of articles, where I discuss about the cards that should be crafted
first in Hearthstone, when playing on a budget. And we’re all playing on a budget.


If you want to read the rest of the articles, here is the full list:

Seems like it’s fine, you just need to delete the tables. Or do as I did and paste in the first sections until you find which part at the bottom is interfering – most likely the tables.

(oblio) #7

I’ve found a workaround: I included div.article-presentation in the embedding whitelist and I make the first paragraph Discourse-friendly (i.e. no tables or funny business), so that it is imported correctly.

Is there no plan to support Markdown tables in Discourse? I mean, I’m sure there are a ton of other use cases for this, than just importing complicated blog posts :smile:

(Jeff Atwood) #8

Not for a few months, but we will be switching to CommonMark soon.