Skip to main content
edited tags
Link
Active reading [<https://en.wikipedia.org/wiki/Markdown> <https://en.wiktionary.org/wiki/occur#Verb>]. Removed historical information (e.g. ref. <https://meta.stackexchange.com/a/230693> and <https://meta.stackexchange.com/a/127655>) - the question should be as if it was written right now.
Source Link
Peter Mortensen
  • 31.6k
  • 4
  • 22
  • 14

Earlier today, I encountered a question with several lines of code that had been entered as individual, inline code blocks instead of a single, fenced code block. I assumed the OP was unfamiliar with markdownMarkdown and had simply done more work than necessary, so I edited the question to consolidate the lines of code into a single, fenced block and moved on.

screenshot showing edit history containing the problemScreenshot showing edit history containing the problem

screenshot of text showing the same problemScreenshot of text showing the same problem

It occuredoccurred to me that this could be the result of the new Ask Wizard and, after checking the edit history on the first post mentioned above, I can see that the wizard was indeed used to draft the question.

Edit: Sebastian Simon for points out that the wizard itself is not the cause; it is exposing new users to the new editor. There may be similar issues logged with code (and formatting in general) when the new editor is in "Rich Text" mode (markdownMarkdown off).

The second question has not been edited, so I cannot confirm that it too was created with the wizard, but the OP of the second question has 1 rep, so I don't believe it's out of the realm of possibility.

Edit: wjandrea points out that you can check if the draft of the post was created with the Ask Wizard by checking the timeline when the edit history is not otherwise visible on the post.

screenshot showing this other problem in MarkdownScreenshot showing this other problem in Markdown

screenshot showing the fenced code block in rich textScreenshot showing the fenced code block in rich text

With markdownMarkdown off, my interpolated string's backticks rendered an inline code block in the editor. Selecting all the code caused the "Inline Code" button to change to an active state, so presumably it was able to tell there was an inline code block in the selection.

screenshot showing Markdown onScreenshot showing Markdown on

screenshot showing Markdown offScreenshot showing Markdown off

screenshot showing the replication of the issueScreenshot showing the replication of the issue

Earlier today, I encountered a question with several lines of code that had been entered as individual, inline code blocks instead of a single, fenced code block. I assumed the OP was unfamiliar with markdown and had simply done more work than necessary, so I edited the question to consolidate the lines of code into a single, fenced block and moved on.

screenshot showing edit history containing the problem

screenshot of text showing the same problem

It occured to me that this could be the result of the new Ask Wizard and, after checking the edit history on the first post mentioned above, I can see that the wizard was indeed used to draft the question.

Edit: Sebastian Simon for points out that the wizard itself is not the cause; it is exposing new users to the new editor. There may be similar issues logged with code (and formatting in general) when the new editor is in "Rich Text" mode (markdown off).

The second question has not been edited, so I cannot confirm that it too was created with the wizard, but the OP of the second question has 1 rep so I don't believe it's out of the realm of possibility.

Edit: wjandrea points out that you can check if the draft of the post was created with the Ask Wizard by checking the timeline when the edit history is not otherwise visible on the post.

screenshot showing this other problem in Markdown

screenshot showing the fenced code block in rich text

With markdown off, my interpolated string's backticks rendered an inline code block in the editor. Selecting all the code caused the "Inline Code" button to change to an active state, so presumably it was able to tell there was an inline code block in the selection.

screenshot showing Markdown on

screenshot showing Markdown off

screenshot showing the replication of the issue

Earlier today, I encountered a question with several lines of code that had been entered as individual, inline code blocks instead of a single, fenced code block. I assumed the OP was unfamiliar with Markdown and had simply done more work than necessary, so I edited the question to consolidate the lines of code into a single, fenced block and moved on.

Screenshot showing edit history containing the problem

Screenshot of text showing the same problem

It occurred to me that this could be the result of the new Ask Wizard and, after checking the edit history on the first post mentioned above, I can see that the wizard was indeed used to draft the question.

Sebastian Simon points out that the wizard itself is not the cause; it is exposing new users to the new editor. There may be similar issues logged with code (and formatting in general) when the new editor is in "Rich Text" mode (Markdown off).

The second question has not been edited, so I cannot confirm that it too was created with the wizard, but the OP of the second question has 1 rep, so I don't believe it's out of the realm of possibility.

wjandrea points out that you can check if the draft of the post was created with the Ask Wizard by checking the timeline when the edit history is not otherwise visible on the post.

Screenshot showing this other problem in Markdown

Screenshot showing the fenced code block in rich text

With Markdown off, my interpolated string's backticks rendered an inline code block in the editor. Selecting all the code caused the "Inline Code" button to change to an active state, so presumably it was able to tell there was an inline code block in the selection.

Screenshot showing Markdown on

Screenshot showing Markdown off

Screenshot showing the replication of the issue

Clarify how to reproduce the issue. Improve formatting.
Source Link
wjandrea
  • 32.6k
  • 21
  • 36

The issue

enter image description herescreenshot showing edit history containing the problem

enter image description herescreenshot of text showing the same problem

Replication

Replication

I used the provided /questions/ask?force-wizard=true link to test my hypothesis. I used the following code and tried the following methods to reproduce the issue. Method 4 ended up reproducing the problem.

const greeting = 'Hello';
const subjects = ['World', 'Meta', 'You'];

subjects.forEach(s => {
    console.log(`${greeting}, ${s}!`);
});
const greeting = 'Hello';
const subjects = ['World', 'Meta', 'You'];

subjects.forEach(s => {
    console.log(`${greeting}, ${s}!`);
});

1. Copying the code, then applying the "Inline Code" tool.

1. Copying the code, then applying the "Inline Code" tool.

enter image description herescreenshot showing this other problem in Markdown

2. Clicking the "Inline Code" tool, then pasting my code into the selection area.

2. Clicking the "Inline Code" tool, then pasting my code into the selection area.

3. Turning off the "Markdown" toggle, then pasting my code.

3. Turning off the "Markdown" toggle, then pasting my code.

enter image description herescreenshot showing the fenced code block in rich text

4. Pasting my code, then turning off the "Markdown" toggle, then using the "Inline Code" tool.

4. Pasting my code, then turning off the "Markdown" toggle, then using the "Inline Code" tool.

Here's where the edge cases started showing up. With markdown off, my interpolated string's backticks rendered an inline code block in the editor. Selecting all the code caused the "Inline Code" tool's button to change to an active state, so presumably it was able to tell there was an inline code block in the selection.

enter image description herescreenshot showing Markdown on

enter image description herescreenshot showing Markdown off

enter image description herescreenshot showing the replication of the issue

Resolution

Resolution

The issue

enter image description here

enter image description here

Replication

I used the provided /questions/ask?force-wizard=true link to test my hypothesis. I used the following code and tried the following methods to reproduce the issue.

const greeting = 'Hello';
const subjects = ['World', 'Meta', 'You'];

subjects.forEach(s => {
    console.log(`${greeting}, ${s}!`);
});

1. Copying the code, then applying the "Inline Code" tool.

enter image description here

2. Clicking the "Inline Code" tool, then pasting my code into the selection area.

3. Turning off the "Markdown" toggle, then pasting my code.

enter image description here

4. Pasting my code, then turning off the "Markdown" toggle, then using the "Inline Code" tool.

Here's where the edge cases started showing up. With markdown off, my interpolated string's backticks rendered an inline code block in the editor. Selecting all the code caused the "Inline Code" tool's button to change to an active state, so presumably it was able to tell there was an inline code block in the selection.

enter image description here

enter image description here

enter image description here

Resolution

screenshot showing edit history containing the problem

screenshot of text showing the same problem

Replication

I used the provided /questions/ask?force-wizard=true link to test my hypothesis. I used the following code and tried the following methods to reproduce the issue. Method 4 ended up reproducing the problem.

const greeting = 'Hello';
const subjects = ['World', 'Meta', 'You'];

subjects.forEach(s => {
    console.log(`${greeting}, ${s}!`);
});

1. Copying the code, then applying the "Inline Code" tool.

screenshot showing this other problem in Markdown

2. Clicking the "Inline Code" tool, then pasting my code into the selection area.

3. Turning off the "Markdown" toggle, then pasting my code.

screenshot showing the fenced code block in rich text

4. Pasting my code, then turning off the "Markdown" toggle, then using the "Inline Code" tool.

With markdown off, my interpolated string's backticks rendered an inline code block in the editor. Selecting all the code caused the "Inline Code" button to change to an active state, so presumably it was able to tell there was an inline code block in the selection.

screenshot showing Markdown on

screenshot showing Markdown off

screenshot showing the replication of the issue

Resolution

Edited to clarify that the wizard is not the direct cause
Source Link
D M
  • 7k
  • 4
  • 8
Loading
edited tags
Link
Samuel Liew Mod
  • 78.9k
  • 10
  • 140
  • 138
Loading
edited tags
Link
Sebastian Simon
  • 19.4k
  • 5
  • 23
  • 28
Loading
Source Link
D M
  • 7k
  • 4
  • 8
Loading