GitbookIO / kramed

A markdown (kramdown compatible) parser and compiler. Built for speed. (Fork of marked)
MIT License
223 stars 47 forks source link

Inline lexer must pass encode argument to escape() #13

Closed aepstein closed 9 years ago

aepstein commented 9 years ago

The the escape method for InlineLexer did not take a second argument. The escape method underlying it accepts this argument. For certain things like inline code, this argument needs to be passed for things to work as expected (e.g. inline code should have & escaped). This patch adds support for that second argument, allowing tests to pass again.

AaronO commented 9 years ago

@aepstein Thanks ! :+1:

AaronO commented 9 years ago

@aepstein Shipped this as part of 0.4.6.