| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Enter event for `LabelText` should be inserted before existing events at the index in order
to have correct nesting. Otherwise nested elements could have Enter event first and that
would result in incorrect nesting in the tree when converting to AST.
Closes GH-73.
Closes GH-50.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Related-to: GH-26.
Closes GH-60.
|
|
|
|
| |
Related-to: GH-22.
|
|
|
|
|
|
| |
Closes GH-29.
Reviewed-by: Titus Wormer <tituswormer@gmail.com>
Co-authored-by: Bernhard Berger <bernhardberger3456@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Example:
```markdown
[*]() [*]()
```
There was already code for:
```markdown
[*]() x*.
*x [*]().
```
But that wasn’t correct for attention at the same depth but in different places.
Closes GH-21.
Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
|
|
|
|
| |
This will probably catch some confusing bugs, such as ad1b3e6.
|
|
|
|
|
|
| |
Closes GH-20.
Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
|
|
|
|
| |
Related-to: GH-20.
|
|
|
|
|
|
| |
Closes GH-19.
Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
|
|
|
|
|
|
| |
Closes GH-16
Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
|
|
|
|
|
| |
Closes GH-13.
Closes GH-14.
|
|
|
|
| |
Closes GH-11.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Fix some positional info in SWC error messages
* Add positional info in `to_document` on duplicate layouts
* Add support for `path` on `Program` (`to_swc`, `to_document`, `jsx_rewrite`),
for the path of a file on disk
* Add support for `development` to `jsx-rewrite`, which when defined will embed
info on where tags were written into the runtime code when they are not passed
* Refactor to move some utilities to `micromark_swc_utils.rs`, `swc_utils.rs`
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit adds support for hooks that lets a user integrate another
parser with `micromark-rs`, to parse ESM and expressions according to
a particular grammar (such as a programming language, typically
JavaScript).
For an example integrating with SWC, see `tests/test_utils/mod.rs`.
The integration occurs with two functions passed in `options`:
`mdx_expression_parse` and `mdx_esm_parse`.
The can signal back to micromark when they are successful,
whether there is an error at the end (in which case micromark will
try to parse more), or whether there is a syntax error (in which case
micromark will crash).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
An undocumented part of CommonMark is how to deal with things in definition
labels or definition titles (which both can span multiple lines).
Can flow (or containers?) interrupt them?
They can according to the `cmark` reference parser, so this was implemented here.
This adds a new `Content` content type, which houses zero or more definitions,
and then zero-or-one paragraphs.
Content can be followed by a setext heading underline, which either turns
into a setext heading when the content ends in a paragraph, or turns into
the start of the following paragraph when it is followed by content that
starts with a paragraph, or turns into a stray paragraph.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* Fix a crash on line endings in footnote definitions
* Fix to match spaces and tabs in identifiers to `cmark-gfm`
* Fix order of one attribute
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|