TuWei1992/pagedown

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

Closed this issue · 5 comments

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

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

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

  • Changed state: Invalid
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

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

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