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.

Example:

https://forum.oblio360.com/t/hearthcraft-key-cards-common-neutral-cards-hearthstone/37

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: https://forum.oblio360.com/t/hearthcraft-key-cards-rare-neutral-cards-hearthstone/38

@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 https://raw.githubusercontent.com/oblio360/hearthstone-blog/gh-pages/_posts/2015-11-21-hearthcraft-key-rares.md


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.

Dust

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.