-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Definitions at end of section should be excluded #7
Comments
Correct! It's not very pretty. This plugin uses https://github.com/syntax-tree/mdast-util-heading-range, so the definitions are passed in 'nodes', and to make them persist you can add them to the returned nodes. I think it makes the most sense to actually, optionally, let heading-range do this. What do you think? |
This package conflicts though with your own preset. I get tons of these warnings now:
|
I know, I don't use it personally. |
I was confused by the comment* so much hahahaha |
@wooorm Since this plugin formats it to just a single line / node, shouldn't we only check for the next two immediate lines? |
@wooorm How can we implement this? I'm trying to read through the docs now and understand |
No, I don‘t think we can just check one node. This feature would benefit other plugins too. First, have you read up on what In essence: it searches for a section, and gives you its first node (a heading), the content in the section, and the end node (another heading, or nothing if it it’s not there). I think we should change that, optionally, by looking at E.g., say you have the following: # License
Paragraph
[definition-a]: example.com
[definition-b]: example.com Proposed: |
I don't think I'd be able to do this efficiently, I just did write a major plugin enhancement though over at remarkjs/remark-contributors#4, so that taught me a lot about |
Can you add to this package and version bump? @wooorm |
Could you create the loose PRs first? That way my changes won’t conflict yours. I’ll update it here after that. |
If you have the following:
Upon running
remark
withremark-license
plugin it will strip the link[npm]
etcThe text was updated successfully, but these errors were encountered: