7

Revision #2 for the answer in side-by-side markdown mode shows diff at the top and at the end of the post:

diff

The only change here is adding a tag (for some reason with backslashes) at the top. But there's no diff at the bottom. Why are the final lines highlighted as modified?

Ollie
27.4k3 gold badges46 silver badges141 bronze badges
asked May 26, 2021 at 18:32
1
  • 4
    It's worse; if you try to edit the post and then preview, you'll see the formatting isn't working. I suspect Anita is using an alpha version of the site ... Commented May 26, 2021 at 18:48

1 Answer 1

8

There is a change at the bottom. Anita's edit removed a trailing blank line. It would be really nice if the diff displayed characters for white space (or had a mode where we could toggle it on and off).

Removing the extraneous backslashes from the tag should restore the formatting in the WYSIWYG editor.

It looks like the editor doesn't understand tags (there's a feature request to fix that) You have to switch to Markdown mode before entering them. If you type [tag:bug] in WYSIWYG mode it will escape the brackets presumably so that they don't get interpreted as Markdown, but then the tag gets rendered properly anyhow? I'm not sure what is going on there.

I enabled the new editor to test adding a tag, and inserting a tag in a post is really not intuitive.

typed in WYSIWYG mode (preview doesn't render the tag, but it renders in the post when I save the edit)
typed in Markdown mode (preview does render the tag)

answered May 26, 2021 at 19:35
3
  • You're right. The only way I know of to check this is to compare meta.stackexchange.com/posts/364143/edit/… with meta.stackexchange.com/posts/364143/edit/… ... Commented May 26, 2021 at 19:39
  • 1
    @Glorfindel That's exactly what I did. My source code editors expose the "trim trailing white space" as an option and I suspected the WYSIWYG editor was probably doing it by default. Commented May 26, 2021 at 19:41
  • 7
    OK, I've had enough alpha testing for now. I'm turning the new editor off. I really dislike having to toggle on a destructive preview to see what the Markdown I typed is doing. Commented May 26, 2021 at 20:17

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.