-
Notifications
You must be signed in to change notification settings - Fork 6
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
🔄 Redefine schema in terms of @types/mdast
#67
Open
agoose77
wants to merge
40
commits into
main
Choose a base branch
from
agoose77/feat-use-types
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
4b0e828
wip
agoose77 0d244c6
wip: all types
agoose77 23dfd08
fix: more type fixes
agoose77 1442acc
feat: add schema output
agoose77 500e861
fix: add containers
agoose77 4396156
chore: drop build
agoose77 0534335
docs: remove mention of deviation
agoose77 2657958
chore: add lint
agoose77 7405799
docs: add docstrings
agoose77 c479954
chore: update workflow
agoose77 6b6c915
fix: make meta optional
agoose77 9661dd5
fix: correct node name
agoose77 0d16cfb
wip: tset-generation infra
agoose77 1a3b77e
fix: update examples to wrap bare text
agoose77 505f295
fix: make children and value required
agoose77 9e4a3e8
fix: more nodes should be opt-in association
agoose77 d0b1eee
fix: class for image and code
agoose77 2bde57c
fix: support Image.align
agoose77 3f26261
fix: support Image.width
agoose77 dbf116d
fix: use existing Table
agoose77 9b38f35
fix: table examples
agoose77 23ec2d3
fix: specify missing children
agoose77 4ffa33c
fix: only lint src
agoose77 815c0fd
feat!: drop schema output
agoose77 b6ea153
fix: use object type to fix schema generation
agoose77 583d289
Revert "feat!: drop schema output"
agoose77 a543efa
chore: restructure
agoose77 6798dbb
fix: use eslintrc
agoose77 f7cf8f1
feat: prepare for API docs
agoose77 9e5d525
feat: add AST generation
agoose77 b708a74
fix: embed spec in div
agoose77 65ad719
feat: work on examples
agoose77 bb4e4e8
fix: use commonmark in tsdoc comment
agoose77 8c6f82d
fix: example for mystTarget
agoose77 49f8c7f
feat: show array types as footnotes
agoose77 3f82f8f
fix: don't export Association mixin
agoose77 1a3d010
fix: add break case example
agoose77 a745126
feat: add up-to-date scripts
agoose77 ad5518e
fix: missing files
agoose77 a938508
fix: drop build step
agoose77 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
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.
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.
I don't think this is correct w.r.t the CommonMark spec:
- one two
produces this CommonMark AST:
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.
Isn't this saying that we default to having a paragraph instead of text directly in the list item? Which is what is created?
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.
Our documentation states that
is permitted by the CommonMark spec. I don't see any evidence that that is the case. What I did notice is that the HTML renderer doesn't show the
<p>
, but I think that might be a rendering difference rather than a spec difference.I noticed this because whilst the spec page shows. EDIT: oops, off-by-one error :P<li>TEXT</li>
in the inline example, the actual examples file does notThere 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.
To add -- if my conclusion here is incorrect, then typing this proves quite hard because it is not easy/possible to extend an existing type and change the type of children in that manner.
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.
Wow... yeah, wild that the html doesn't show the
<p>
despite it being in the AST! Oof, good catch.