interagent / prmd

JSON Schema tools and doc generation for HTTP APIs
MIT License
2.1k stars 172 forks source link

Definition pattern rending pipe HTML code #313

Open nomasprime opened 7 years ago

nomasprime commented 7 years ago

Hi, I'm having a problem with using a pattern matcher inside a definition.

When I use "pattern": "string|image" it renders pattern: string|image

It looks like commit 6a84c6701ff8b65145665531292e97493f2fe806 might be causing the problem, i.e., renders fine with <code></code> instead of back ticks but I'm not sure why this change was made so maybe I'm doing something wrong my end.

Happy to create a PR to stop pipe being replaced with HTML code if that's the correct fix.

geemus commented 7 years ago

Hey. I don't think the code vs backtick should make a difference (I think markdown treats both the same). But that line does have an explicit gsub of | to &#124; it looks like. Probably some reason for having done that, but I do not remember it... Since we wrap it in code, maybe we can remove the gsub now?