James Quilty

Results 43 comments of James Quilty

I just tried reproducing the test case with a file and received different results to those you show. I receive: ```shell $ markdown-it test.md foo\ baz ``` i.e. the ``...

Well, this is odd: on a different Mac I receive the same output you do. There's a difference in Python version 3.7.3 vs. 3.7.4 and macOS version 10.15.7 vs 10.14,...

FWIW, I tracked down the problem between machines: trailing white space (invisible!) in the test file on one of the machines originating from, I think, copy-and-paste. The original problem with...

The [CommonMark Spec 0.20: Preprocessing](https://spec.commonmark.org/0.20/#preprocessing) used to specify: > Tabs in lines are immediately expanded to spaces, with a tab stop of 4 characters: but this was changed in version...

Well, I'm not _too_ excited about the `--check` feature for exactly the same reasoning. YMMV. Black's implementation of this feature appears to be straightforward and I've added it to the...

@arwedus my context is similar to yours and the inability to configure mdformat blocks its use and has created additional work. @hukkin I have some incomplete local hacks to configure...

This Issue motivated me to complete my hacking, which I've pushed to a branch on my fork: [add-defaults-to-configuration](https://github.com/executablebooks/mdformat/compare/master...jamesquilty:add-defaults-to-configuration?expand=1).

FWIW, ~~the ability to disable escaping altogether is next on my list of configurations to implement in my fork~~ commit https://github.com/jamesquilty/mdformat/commit/2404bb0ee6728270c5b7f266ff5a44e0973024a4 adds a configuration option `escape_square_brackets` which simply (or simple-mindedly)...

I appreciate your quick reply! I was testing over the weekend and I think that the current behaviour isn't as consistent as would be desired. White space entity references show...

Looking into the white space handling, the `paragraph()` function is responsible for the numeric entity reference substitutions ` `→` ` and ` `→` ` above: https://github.com/executablebooks/mdformat/blob/a856f538e2dcb81a83e9013fb073f16cd6e53972/src/mdformat/renderer/_context.py#L382-L386 As the comments indicate, this is trying to...