Currently using HTML for posts, but [ul] etc has a lot of unnecessary [br /]s in it
(Changed < to [ in the title because it was screwing things up.)
Is there any way I can fix this? e.g. a simple list, such as this one:
<ul> <li>a</li> <li>b</li> </ul>
Produces the following:
<ul><br> <li>a</li><br> <li>b</li><br> </ul>
Or possibly I should just stop using HTML, and switch my forum over to something else? Any recommendations? (There's only a few posts right now so I can easily edit them. I do kinda like Markdown.)
Best Answer
-
peregrine MVP
personally I like buttonbar and markdown formatting.
$Configuration['Garden']['InputFormatter'] = 'Markdown';
if you change to Markdown in the config.php, it will only affect NEW posts.
if you want to change formatting for old posts, you need to change the value in the Format column in the Discussion and Comment tables
if you change to Markdown formatting - html code as you desire for lists will not add a new line.
as seen here
- a
- b
but some html tags might not work in Markdown and you need to use the buttonbar or markdown syntax.
e.g. code tags via html will not work in markdown on this forum, but i think they will work in vanilla 2.1.5.
the whole thing is a moving target at this point, until the "Advanced Editor" is distributed and issues resolved.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
5
Answers
with html as your formatter, thats because you have line breaks in the list
it would need to be
<ul><li>a</li><li>b</li></ul>
vs.
<ul> <li>a</li> <li>b</li> </ul>
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Yeah, that's true, but it would be pretty awful to have to type all my HTML on one line.
Is there a fix for this that would permit multiline HTML, or should I go with some post input plugin?
personally I like buttonbar and markdown formatting.
$Configuration['Garden']['InputFormatter'] = 'Markdown';
if you change to Markdown in the config.php, it will only affect NEW posts.
if you want to change formatting for old posts, you need to change the value in the Format column in the Discussion and Comment tables
if you change to Markdown formatting - html code as you desire for lists will not add a new line.
as seen here
but some html tags might not work in Markdown and you need to use the buttonbar or markdown syntax.
e.g. code tags via html will not work in markdown on this forum, but i think they will work in vanilla 2.1.5.
the whole thing is a moving target at this point, until the "Advanced Editor" is distributed and issues resolved.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Switching the InputFormatter to Markdown should fix that. You will lose soft line breaks though, but you can try if this plugin works for you: http://vanillaforums.org/discussion/comment/214137/#Comment_214137
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS