burkeen / pagedown

Automatically exported from code.google.com/p/pagedown
Other
0 stars 0 forks source link

If there is "<" in code, it will be converted to "&lt" #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Markdown.Converter 

for example

There is Golang code:

   select {
   case <-channel:
   }

will be converted to:

   select {
   case &lt;channel:
   }

Original issue reported on code.google.com by xuxinhua...@gmail.com on 24 Mar 2013 at 7:31

GoogleCodeExporter commented 9 years ago
Of course it is. What's the issue with that? If we didn't do that, HTML tags in 
code blocks would be interpreted by the browser, which is obviously not what we 
intend.

Original comment by b...@stackoverflow.com on 25 Mar 2013 at 1:38

GoogleCodeExporter commented 9 years ago

Original comment by b...@stackoverflow.com on 8 Apr 2013 at 6:50

GoogleCodeExporter commented 9 years ago
But this is golang code

select {
   case <-channel:
}

If it was changed to 
select {
   case <channel:
}

it is not friendly。

Original comment by xuxinhua...@gmail.com on 9 Apr 2013 at 3:07

GoogleCodeExporter commented 9 years ago
But this is golang code

select {
   case <-channel:
}

If it was changed to 
select {
   case <channel:
}

it is not friendly。

Original comment by xuxinhua...@gmail.com on 9 Apr 2013 at 3:07

GoogleCodeExporter commented 9 years ago
The point of Markdown is to create HTML. And a browser sees <, it displays <. 
That's absolutely correct.

Original comment by b...@stackoverflow.com on 9 Apr 2013 at 3:29