text is being arbitrarily put in code boxes

Ideas and discussion


Post Reply
wanderer
Posts: 696
Joined: Mon Jul 13, 2020 7:15 pm
Been thanked: 126 times

text is being arbitrarily put in code boxes

Post 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

User avatar
rockedge
Site Admin
Posts: 5947
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2167 times
Been thanked: 2260 times
Contact:

Re: text is being arbitrarily put in code boxes

Post 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.

wanderer
Posts: 696
Joined: Mon Jul 13, 2020 7:15 pm
Been thanked: 126 times

Re: text is being arbitrarily put in code boxes

Post by wanderer »

this is a test and a thank you

Code: Select all

 blah blah blah blah 

 blah blah blah blah  

 
 wanderer
User avatar
MochiMoppel
Posts: 1151
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 19 times
Been thanked: 379 times

Re: text is being arbitrarily put in code boxes

Post 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

wanderer
Posts: 696
Joined: Mon Jul 13, 2020 7:15 pm
Been thanked: 126 times

Re: text is being arbitrarily put in code boxes

Post by wanderer »

thanks MochiMoppell

i removed all preceding spaces
and it worked

wanderer

s243a
Posts: 501
Joined: Mon Dec 09, 2019 7:29 pm
Has thanked: 90 times
Been thanked: 37 times

Re: text is being arbitrarily put in code boxes

Post 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.

wanderer
Posts: 696
Joined: Mon Jul 13, 2020 7:15 pm
Been thanked: 126 times

Re: text is being arbitrarily put in code boxes

Post by wanderer »

thanks s243a

will look for it
( i see it )

wanderer

User avatar
rockedge
Site Admin
Posts: 5947
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2167 times
Been thanked: 2260 times
Contact:

Re: text is being arbitrarily put in code boxes

Post 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.

User avatar
MochiMoppel
Posts: 1151
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 19 times
Been thanked: 379 times

Re: text is being arbitrarily put in code boxes

Post 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"?

User avatar
rockedge
Site Admin
Posts: 5947
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2167 times
Been thanked: 2260 times
Contact:

Re: text is being arbitrarily put in code boxes

Post 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!

User avatar
rockedge
Site Admin
Posts: 5947
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2167 times
Been thanked: 2260 times
Contact:

Re: text is being arbitrarily put in code boxes

Post by rockedge »

All set!


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

Post Reply

Return to “Forum Organization & Structure Council”