Styling mixup with HTML and Markdown
-
I use
<small>
for my Filed Under shenanigans barring a properly mandated standard (of which the good thing... oh you heard that one already? Good. No need for a link.)Using
*
or backtick (how does one use backtick to inline a single backtick?) breaks the small tag and reverts to normal size.<small>Some text *with feeling*, how'd I do?</small>
Some text with feeling, how'd I do?
-
The workaround I've found is to write the markup HTML style.
I think is fundamental issue is that the code to convert post content to renderable text is a total WTF candidate. What it should do is construct a model of what the author was trying to say and then render that, but what it actually does… well, it invites
Tony the PonyGreat Codethulhu.
-
So, am I supposed to write Markdown, bbcode or actual HTML? Why should I as the user have to do the work, exactly?
-
So, am I supposed to write Markdown, bbcode or actual HTML?
As long as the software constructs a common model out of it, it shouldn't matter.
-
So, am I supposed to write Markdown, bbcode or actual HTML?
Yes.
[Mix and mash][1] if you want.
[1]: http://what.thedailywtf.com/t/markup-in-general/777@dkf said:
As long as the software constructs a common model out of it, it shouldn't matter.
Therein lies one problem - it doesn't
HTML Blockquote
BB Quote
Markdown quote
-
-
The problem is, as already demonstrated, mix and mash doesn't work.
My problem with all this: I have no damned idea what will come out of any given markup I insert. Yes, there's the preview window which is all lovely (and I've thought about this in other environments but never got past 'how do I not hammer the server')... but that seems to me to be part of the problem, not part of the solution.
The fact that you need a preview window like that almost seems like an admission of 'you probably don't know how your tag soup is going to come out, so let's let you look at it before you press the go button'.
-
Yes, there's the preview window which is all lovely
Not on the mobile version of the site there isn't.
-> Mobile View.
-
I didn't even look at the mobile view because I sort of naively assumed the limited markup would just make things reflow nicely on mobile anyway... responsive design?
All that says to me is 'people on mobile aren't going to do formatting' because it's hard enough to type symbols, plus the fact that you can't see the tag soup...
-
All that says to me is 'people on mobile aren't going to do formatting' because it's hard enough to type symbols, plus the fact that you can't see the tag soup...
Also, on most keyboards available, HTML markup is super fun! I think the best general use keyboard I found required going only 2 levels deep into the special character territory to get to < and >.
-
Which is where the [ and ] for bbcode live, which is the only reason Markdown scores any points, because the characters are only one level down. Or it would score points if it wasn't so limited and unpredictable anyway.
-
because it's hard enough to type symbols
Meh. Depends on the keyboard.
I found required going only 2 levels deep into the special character territory to get to < and >.
Top level for me.
-
Therein lies one problem - it doesn't
The styling on the bb quote used to be different, but it messed up nested quotes (that is, any type of quote inside a bb quote, not just nested bb quotes) so I changed the CSS. It's a single-line fix:
Change that line to
return contents;
and you're all set, but you'll also have to fix all the test cases.
-
This post is deleted!
-
This post is deleted!
-
But
contents
is already a blockquote!
-
Oops. Deleting post in shame.
-
I wonder what happens if the post I replied to no longer exists.
-
Plenty of that over on BoingBoing. Go test over there.
-
We'll find out in 24 hours.
-
I wonder what happens if the post I replied to no longer exists.
What if we all bookmark it?
-
I wonder what happens if the post I replied to no longer exists.
It becomes an orphan.
-
-
Happy to report this is now fixed in master and should be deployed with the next update to the forum. Thanks for letting us know!
-