-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve parsing of composite inline blocks (#66)
* Incorporate math blocks into core token search * improve `find_core_tokens` * Update span_tokens.py * Improve consisency between examples * Retry `math:numref` * Update wealth_dynamics_md.md
- Loading branch information
1 parent
1a1cd05
commit 7cc2c92
Showing
10 changed files
with
222 additions
and
32 deletions.
There are no files selected for viewing
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
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
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
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
14 changes: 14 additions & 0 deletions
14
tests/test_syntax/test_ast/test_math_in_image_strings12_.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
children: | ||
- children: | ||
- children: | ||
- content: $a$ | ||
type: Math | ||
src: $b$ | ||
title: '' | ||
type: Image | ||
range: | ||
- 1 | ||
- 1 | ||
type: Paragraph | ||
footnotes: {} | ||
type: Document |
14 changes: 14 additions & 0 deletions
14
tests/test_syntax/test_ast/test_math_in_link_content_strings10_.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
children: | ||
- children: | ||
- children: | ||
- content: $a$ | ||
type: Math | ||
target: link | ||
title: '' | ||
type: Link | ||
range: | ||
- 1 | ||
- 1 | ||
type: Paragraph | ||
footnotes: {} | ||
type: Document |
14 changes: 14 additions & 0 deletions
14
tests/test_syntax/test_ast/test_math_in_link_target_strings11_.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
children: | ||
- children: | ||
- children: | ||
- content: a | ||
type: RawText | ||
target: $b$ | ||
title: '' | ||
type: Link | ||
range: | ||
- 1 | ||
- 1 | ||
type: Paragraph | ||
footnotes: {} | ||
type: Document |
18 changes: 0 additions & 18 deletions
18
tests/test_syntax/test_ast/test_math_issue_51_strings8_.yml
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
tests/test_syntax/test_ast/test_math_issue_51_strings9_.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
children: | ||
- children: | ||
- content: 'Math can be called in-line with single ' | ||
type: RawText | ||
- children: | ||
- content: $ | ||
type: RawText | ||
type: InlineCode | ||
- content: ' characters around math.' | ||
type: RawText | ||
- content: '' | ||
soft: true | ||
type: LineBreak | ||
- content: 'For example, ' | ||
type: RawText | ||
- children: | ||
- content: $x_{hey}=it+is^{math}$ | ||
type: RawText | ||
type: InlineCode | ||
- content: ' renders ' | ||
type: RawText | ||
- content: $x_{hey}=it+is^{math}$ | ||
type: Math | ||
- content: . | ||
type: RawText | ||
range: | ||
- 1 | ||
- 2 | ||
type: Paragraph | ||
footnotes: {} | ||
type: Document |
14 changes: 14 additions & 0 deletions
14
tests/test_syntax/test_ast/test_math_multiline_strings8_.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
children: | ||
- children: | ||
- content: '$$a | ||
c | ||
b$$' | ||
type: Math | ||
range: | ||
- 1 | ||
- 3 | ||
type: Paragraph | ||
footnotes: {} | ||
type: Document |