Additional Fluxbb tests and fixes#1
Conversation
Allow a bbcode tag config to force all newlines into <br> html tags within its children_html. This is useful for outputting markdown headings as follows. Headings need to be all on one line even if the source bbcode allows newline chars. `## My heading<br>continued on the next line.` Outputting headings? This is something I need to be able to do as a custom "additional tag" at least.
Add an example tag config which makes use of the new 'to_br' feature. This is how we would use it for FluxBB (but iobviously doesn't effect default behaviour)
Treat tags as text inside code blocks
|
@harry-wood Any chance you could merge this PR into your branch? Maybe squash it. |
|
I was very puzzled about why the I see where someone was pointing out that it didn't work. https://community.openstreetmap.org/t/migrating-content-from-old-forums/446/152 . Their example coming from this original bbcode involving [s] within a [list]. I believe strikethrough must have worked fine everywhere else, but not within a list, and ... bad news... we have a [list] problem that goes beyond strikethrough. I took the decision to do [list][*] syntax conversion to into html When we give discourse an But perhaps we can still avoid markdown list indentation hell. Try this. Not pretty, but this works! So maybe we can just bung in some extra newlines after every So I guess I'll add that into the list handling logic, which is over in the discourse PR (regex preprocessing logic. Not in this gem) Here we need to take out changes to do with strikethrough. Unless I'm mistaken, that was fine as I had it. |
|
|
This was fixed. The older posts was where I was still testing multiple different versions of the importer. Please focus just on this PR. |
|
There have been no issues raised about the formatting on the test import site for the last few weeks despite me asking. In my view the fluxbb bbcode -> discourse markdown is now "good enough". Please only look at comments AFTER the last import: https://community.openstreetmap.org/t/migrating-content-from-old-forums/446/164?u=firefishy |
Track node stack explicitly
9ae7307 to
6d7c8c8
Compare
|
I didn't merge this directly, but I've just finished picking through it. We can close it. I've cherry-picked / taken inspiration from here into my PR: nlalonde#6 I didn't bring in the |
[code]to markdown support<s>instead of github's~~