Closed hendrikvanantwerpen closed 8 months ago
Looks good and is going to make this node a bit more consistent. Thank you!
Thank you @MDeiml! In a related note, would it be possible to release a new version and publish it to crates.io? We're currently depending on the commit, but cargo is much slower with these than with releases, and we also cannot release our own crate if we want.
Hi @hendrikvanantwerpen! is it possible for you to implement a similar fix for #41?
@petobens I'm not able to do that at the moment. Perhaps my PR will give you an idea of how to try it?
Would love to but I'm afraid it's beyond my skill set.
As mentioned in the issue this change is a lot more complex than the one for ATX heading markers, but the workaround described there should be enough for almost all use cases.
Problem
The
heading_content
of ATX headings would include the whitespace between the heading marker and the heading text.Example
Given an example file
Executing the query
results in
Changes
A new
$_atx_heading_content
rule allows optional whitespace before the line content that is captured inheading_content
.For the given example, the query now returns