-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Add reference property on full references when different from identif… #346
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ier. * Change parse to add this property when needed to reconstruct the original input should the reference turn out to be undefined. * Change parse test to handle this case * Change stringify to prefer the reference property, if present, over the identifier property to produce markdown source. * Add round-tripping tests for all undefined references.
This was referenced Aug 8, 2018
BridgeAR
reviewed
Aug 10, 2018
test/remark-stringify.js
Outdated
['capitalized image references - full', '![alpha][Bravo]'], | ||
['capitalized image references - collapsed', '![Bravo][]'], | ||
['capitalized image references - shortcut', '![Bravo]'], | ||
['capitalized footnote references', '[^Alpha]'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the linter complains about the trailing comma.
This comment has been minimized.
This comment has been minimized.
wooorm
added a commit
to syntax-tree/mdast
that referenced
this pull request
Aug 31, 2018
This change adds support for a new optional field on the association mixin, used by `definition`, `footnoteDefinition`, the `Reference` mixin (in turn used by `linkReference`, `imageReference`, and `footnoteReference`). The value of the `label` field must, when present, hold the non-normalised value of the `identifier` field. This allows references that are not association with definitions to be represented correctly as raw text again. Closes GH-23. Related to syntax-tree/mdast-util-to-hast#20 Related to syntax-tree/mdast-util-to-hast#21 Related to syntax-tree/mdast-util-to-hast#22 Related to remarkjs/remark#346
Ping @wooorm |
ChristianMurphy
approved these changes
Oct 5, 2018
Superseded by GH-363, which takes this PR but uses a different name in accordance with mdast and adds labels to all associations. |
wooorm
added a commit
that referenced
this pull request
Oct 14, 2018
* remark-parse: add label to definition, footnote definition, link reference, image reference, footnote reference * remark-stringify: use full reference if no type is set Related to syntax-tree/mdast#23. Related to syntax-tree/mdast-util-to-hast#22. Supersedes GH-346. Closes GH-363. Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com> Co-authored-by: Sam Ruby <rubys@intertwingly.net>
wooorm
added a commit
to syntax-tree/mdast-util-to-hast
that referenced
this pull request
Nov 11, 2018
Closes GH-22. Related to GH-20. Related to syntax-tree/mdast#23. Related to remarkjs/remark#346. Co-authored-by: Sam Ruby <rubys@intertwingly.net>
wooorm
added a commit
to syntax-tree/mdast-util-to-hast
that referenced
this pull request
Nov 11, 2018
Closes GH-22. Related to GH-20. Related to syntax-tree/mdast#23. Related to remarkjs/remark#346. Co-authored-by: Sam Ruby <rubys@intertwingly.net>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…ier.
input should the reference turn out to be undefined.
the identifier property to produce markdown source.