Page 1 of 1

text is being arbitrarily put in code boxes

Posted: Wed Nov 11, 2020 2:25 am
by wanderer

hi rockedge
sometimes when i post my text is being arbitrarily put in code boxes
dont know why and cant seem to stop it

wanderer


Re: text is being arbitrarily put in code boxes

Posted: Wed Nov 11, 2020 2:43 am
by rockedge

Very strange indeed. I can look at the raw post you made but I can not see any reason why the code block is appearing. When I check the disable BBCode at the bottom of the editor, of course the code block disappears.

But it shouldn't be doing this.

Update:

I am experimenting with your post and I did get it to just create 2 code blocks with only one of them intentional.


Re: text is being arbitrarily put in code boxes

Posted: Wed Nov 11, 2020 3:26 am
by wanderer

this is a test and a thank you

Code: Select all

 blah blah blah blah 

 blah blah blah blah  

 
 wanderer

Re: text is being arbitrarily put in code boxes

Posted: Wed Nov 11, 2020 4:17 am
by MochiMoppel
rockedge wrote: Wed Nov 11, 2020 2:43 am

Very strange indeed. I can look at the raw post you made but I can not see any reason why the code block is appearing.

I dont' know which "raw post" you are referring to, but as for wanderer's next post the reason is the new Markdown option. ("To output code, enclose it in a pair of ``` or ~~~, or alternatively add 4 empty spaces before each line")
Maybe you should disable it by default. It can really create unintended results and the description isn't accurate either.

line with no prepending space

line with 1 prepending space

line with 2 prepending spaces

line with 3 prepending spaces

Code: Select all

line with 4 prepending spaces

 line with 5 prepending spaces

text in single backtics

text in double backtics

text in triple backtics

~ text in single tildes ~

text in double tildes

~ text in triple tildes


Re: text is being arbitrarily put in code boxes

Posted: Wed Nov 11, 2020 5:29 am
by wanderer

thanks MochiMoppell

i removed all preceding spaces
and it worked

wanderer


Re: text is being arbitrarily put in code boxes

Posted: Wed Nov 11, 2020 5:46 am
by s243a
wanderer wrote: Wed Nov 11, 2020 5:29 am

thanks MochiMoppell

i removed all preceding spaces
and it worked

wanderer

Alternatively, when you're posting it looks like there is a checkbox to allow you to disable markdown.


Re: text is being arbitrarily put in code boxes

Posted: Wed Nov 11, 2020 5:50 am
by wanderer

thanks s243a

will look for it
( i see it )

wanderer


Re: text is being arbitrarily put in code boxes

Posted: Wed Nov 11, 2020 1:13 pm
by rockedge

@MochiMoppel good explanation! I thought this was a markdown - bbcode conflict / control type issue.

The best way for a user to prevent any conflicts or un-wanted side effects is to check the Markdown disable box on the controls at the bottom of the post editor. I have not found a good way to disable the Markdown extension by default with an "Enable" checkbox for each individual post so we will stick with option to disable Markdown on a per post basis.


Re: text is being arbitrarily put in code boxes

Posted: Wed Nov 11, 2020 1:54 pm
by MochiMoppel
rockedge wrote: Wed Nov 11, 2020 1:13 pm

I have not found a good way to disable the Markdown extension by default with an "Enable" checkbox for each individual post so we will stick with option to disable Markdown on a per post basis.

@rockedge Why not disable it with
<input type="checkbox" name="disable_markdown" id="disable_markdown" checked="checked"/>

And is there anything you can do about this incorrect "Markdown guide"?


Re: text is being arbitrarily put in code boxes

Posted: Wed Nov 11, 2020 2:04 pm
by rockedge

@MochiMoppel We certainly can modify the Markdown document! I could use some help and guidance to correct the doc.

I can add the HTML as described and set the check box by default. This is a good idea. Now to track it down and do it!


Re: text is being arbitrarily put in code boxes

Posted: Wed Nov 11, 2020 3:44 pm
by rockedge

All set!


I modified the Markdown extension to disable the Markdown feature by default.