Support for pretty="none"#326
Conversation
alerque
left a comment
There was a problem hiding this comment.
Thanks for taking the time to contribute. This looks like a good thing to fix, but I'm not sure this implementation is quite right. Are you still using this?
|
|
||
| -- if the corresponding argument was the default, then any ldoc field overrides | ||
| local function override (field,defval) | ||
| defval = defval or false |
There was a problem hiding this comment.
This line was to cast possible nil values to a boolean false. I think it was probably correct.
|
To be honest, I've entirely swapped this out of memory, so I can't remember why the |
|
Can you test your usage with that line put back in? It looks right to me, and there is a big difference between |
This adds support for setting
pretty="none"to work around #162. Doing so disables the prettifier so that it doesn't mess up the parsing of other Markdown constructs.The
defval = defval or falsepart was deleted because it was preventing theprettyvalue from being read fromconfig.ld. Actually, this was a bug even before adding thenonevalue: e.g. you couldn't setpretty="lxsh"before this patch. However, it may be worth double checking if this breaks anything else, since I'm not sufficiently aware of the rest of the code base to know what else this may have interacted with.