Escaping '<'

Matt Lyon matt at postsomnia.com
Thu Jan 6 09:17:42 EST 2005


>So to support this, I think we'd need to treat `<% ... %>` sequences
>the same way.
>
>This is probably a good idea, since ASP uses `<% ... %>` the same
>way PHP uses `<? ... ?>`.
>
The Rails framework for Ruby uses <% ... %> too, however, valid 
codeblocks may also start with `<%=` or `<%=h `, where  the equal sign 
inidicates the function outputs, and `h` may be any ascii character 
calling a helper function. It would be lovely if the regex for the above 
sequences didn't require a space directly after the initial punctuation 
delimiter.

Cheers,
Matt


More information about the Markdown-Discuss mailing list