Notifications
Mark all as read
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Possible Markdown rendering issue

+6
−0

I identified a possible Markdown rendering error. In this post, I hyperlinked the last few words. This renders correctly in the preview but not in the actual post.

I’ve tested in a few browsers with same results.

For example, this is supposed to be a link.

Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

6 comments

Weird! Sorry to mess up your test case with an experiment, but I edited the post to move the period out of the link (the original text had "in this proposal." as the link text) and that fixed it. I don't know why that should matter. Monica Cellio‭ 27 days ago

And, as shown in my test-case answer, that didn't happen here in this category. Stranger and stranger! Monica Cellio‭ 27 days ago

Since the linked post got changed to avoid the bug, I tried reproducing it in this post - seems like I can't though Moshi‭ 27 days ago

I managed to do it again: https://meta.codidact.com/a/278967/278969 laserkittens‭ 27 days ago

I did it again two more times. See steps to duplicate: https://meta.codidact.com/a/278967/278977 laserkittens‭ 27 days ago

Show 1 more comments

7 answers

+5
−0

I seem to be able to consistently reproduce the issue. Steps taken:

  • Type (don’t copy a paste) a single sentence into an answer. End the sentence with punctuation (I’ve so far duplicated with a period and a question mark).

  • Select the last few words of the sentence including punctuation.

  • Click the link button in the editor.

  • Paste a link into the dialog.

  • Post the answer.

And just for good measure.

Why does this post require moderator attention?
You might want to add some details to your flag.

2 comments

BTW the last sentence is hyperlinked. Bug duplicated again even in this post. laserkittens‭ 27 days ago

It seems that it only happens when using the link button, not when typing the markdown manually Moshi‭ 26 days ago

+4
−0

I can confirm Laserkittens findings and reproduce the bug according to his instructions, however there is another detail that might perhaps explain Monicas failure to reproduce the bug.

During my tests, i noticed that the bug only manifests when i immediately click the Save/Post button after inserting the link via the Link button.

After inserting the link via the Link button, the text edit element loses the keyboard input focus. Just setting the input focus back to the text edit element (by clicking on it) before saving/posting was enough to prevent the bug from occuring.

The effect was also observable to me in the preview during editing. The link did not appear in the preview after adding it, but when clicking somewhere into the text edit element, the link appeared in the preview.

(I am using Firefox.)

Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment

Bingo. I just reproduced this (using Chrome). Monica Cellio‭ 23 days ago

+0
−0

Test cases (all look fine in the preview):

Link text edited to include period.

Link text contains no punctuation.

Other punctuation too?

What about comma, or exclamation point!

--

Copying text from the other answer to see if who posts it makes a difference (I sure hope not):

This post is a test to see if I can duplicate it.

Why does this post require moderator attention?
You might want to add some details to your flag.

0 comments

+0
−0

Test cases (all look fine in the preview):

Link text edited to include period.

Link text contains no punctuation.

Other punctuation too?

What about comma, or exclamation point!

--

Copying text from the other answer to see if who posts it makes a difference (I sure hope not):

This post is a test to see if I can duplicate it.

--

Another test: following the reproducer instructions in this answer.

--

Another test, as described in this answer.

Why does this post require moderator attention?
You might want to add some details to your flag.

2 comments

Argh. Why does it happen to laserkittens and not to me? (Also why should the renderer care how the markdown got generated, but that's a different question.) Monica Cellio‭ 27 days ago

Perhaps your failed bug reproduction is related to the keyboard input focus i noticed has an effect on the bug occuring. See my answer: https://meta.codidact.com/a/278967/279009 elgonzo‭ 24 days ago

+0
−0

Can I do it again with a question mark?

Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment

I can do this pretty consistently now laserkittens‭ 27 days ago

+0
−0

This post is a test to see if I can duplicate it

Why does this post require moderator attention?
You might want to add some details to your flag.

3 comments

hmn i edited to have the exact same text so why doesn't it work Moshi‭ 27 days ago

It’s weird for sure laserkittens‭ 27 days ago

Punctuation isn't required apparently Moshi‭ 24 days ago

+0
−0

This post is a test to see if I can duplicate it.

Why does this post require moderator attention?
You might want to add some details to your flag.

4 comments

Same bug shown above (don’t edit!) laserkittens‭ 27 days ago

Any idea what the difference is between your reproducer and my non-reproducer? (I used the same link target as in the answer that's linked from the question, the one that displayed the error until I edited). Monica Cellio‭ 27 days ago

Wow, this is getting weirder. I copied the source of your answer into mine, and it works -- exact same Markdown! Could you try copying my first one into yours? Monica Cellio‭ 27 days ago

Here @Monica (let me know if this is not what you meant): https://meta.codidact.com/a/278967/278975 laserkittens‭ 27 days ago

Sign up to answer this question »