You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rename crossReference identifier --> target (this is clearer!); this is explicitly different than MDAST
The thinking is that the linkReference in MDAST and other MDAST pieces get removed early in the parsing, and the crossReference will be long-lived all the way to render time.
Add domain to the crossReference (std, math, prf, or any string) (allow for arbitrary strings!)
For kind: expand to strings
For example, math: eq role becomes: domain: math, kind: numref
TODO:
Write down some of the expected behaviours around references, and how we could possibly simplify ref/numref/eq choices for users.
April 14:
References
Links []() syntax
HTML, mailto, ref, -> any
References that are for a page
Then there are references that can be cross page.
Sphinx refs, every key needs to be unique across documents.
Sphinx doesn't tell you which reference, there isn't warnings on this.
Syntax discussions / Thinking:
[](http(s?) or mailto) - these are external links, done
[](#target) - this is any reference on this page (ref role, i.e. no eq (at the moment))
[](doc.md) - this is a document link, it must have the extension in it.
[](doc.md#target) - this is a target specifically on on another page (ref role, i.e. no eq (at the moment))
possible extension to this is recognize targets that start with certain characters, use this domain.
[](any) - this is a fallback to look up anything in the project
{py:func}`myFunciton` -- use roles to reference into specific domains
Chris to move on this in the python implementation!
Write up a small thing on target resolution / order for a kick start at MEP.
Franlin to improve myst-spec (small, decided upon issues!)
Renaming
mystTargets
♻️ REFACTOR: target -> mystTarget, comment -> mystComment #40mystComments
♻️ REFACTOR: target -> mystTarget, comment -> mystComment #40enumerated
andenumerator
to containers, math, headings #36mystTargets should not be parsed with identifiers
These can come into the picture on a
propagateTargets
transformation.These no longer have
identifiers
, targets must be propagated to define what the identifier actually is.mystTarget
removal is an option of the transformRegarding Link Referencing: https://github.com/executablebooks/myst-spec/pull/28/files#r842494008
link
etc.Add a stage enum to the test? There are a few levels of testing. (parse, transform, post, html)
@fwkoch merges:
kind
->name
#35References
From here
target
Apr. 12 Decisions:
identifier
-->target
(this is clearer!); this is explicitly different than MDASTlinkReference
in MDAST and other MDAST pieces get removed early in the parsing, and thecrossReference
will be long-lived all the way to render time.domain
to thecrossReference
(std, math, prf, or any string) (allow for arbitrary strings!)kind
: expand to stringsFor example,
math
:eq
role becomes:domain: math, kind: numref
TODO:
April 14:
References
[]()
syntaxany
Syntax discussions / Thinking:
[](http(s?) or mailto)
- these are external links, done[](#target)
- this is any reference on this page (ref role, i.e. no eq (at the moment))[](doc.md)
- this is a document link, it must have the extension in it.[](doc.md#target)
- this is a target specifically on on another page (ref role, i.e. no eq (at the moment))[](any)
- this is a fallback to look up anything in the project{py:func}`myFunciton`
-- use roles to reference into specific domainsChris to move on this in the python implementation!
Franlin to improve myst-spec (small, decided upon issues!)
Abbreviation: (
explanation
ortitle
) executablebooks/unified-myst#17On implementing an extension:
markdown-it-docutils
The text was updated successfully, but these errors were encountered: