google-code-export / gaewiki

Automatically exported from code.google.com/p/gaewiki
1 stars 0 forks source link

[]() causes major confusion... #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I'm doing docs for a programming language and created a page like this:

;-----start------;
Function AppArgs[]()

## Description

App args...
;-----end-----;

After entering this, I could no longer edit the page! The whole text area 
appears to have become a link, so as soon as I click on it it loses focus. For 
a while there I thought my wiki had been hacked. I'm using dev version of 
Chrome.

Using \[\] fixes it, but not being able to edit a page probably needs to be 
fixed.

Original issue reported on code.google.com by blitzmun...@gmail.com on 16 Jan 2012 at 1:26

GoogleCodeExporter commented 9 years ago
This is a problem with Markdown, which treats []() as a link with no label and 
no href.  This produces a self-closing <a> tag which is treated by web browsers 
as the opening one.

I imagine two ways of dealing with this:

1. Disable processing of empty links in Markdown.
2. Wrap the code blocks in <code>, e.g. by prepending the lines with 4 spaces.

Original comment by justin.forest on 7 Feb 2012 at 9:36

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 1561fd24d396.

Original comment by justin.forest on 7 Feb 2012 at 9:40