Chris Sewell
Chris Sewell
> Meaning you actually went and did it? That is awesome! Let me try this internally. I only went and bloody did it 😝 https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#block-attributes
@mgielda did you see: https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#markdown-figures, i.e. to do ``` :::{figure-md} :caption: A caption  ::: ``` (note, this was added before the "advent" of attributes, so maybe is a way...
As is obligatory for me to now do 😆 a link to the relvant djot issue: https://github.com/jgm/djot/issues/31
better late than never 😅
It works with https://myst-parser--717.org.readthedocs.build/en/717/syntax/cross-referencing.html#default-destination-resolution 😉 You'll get a warning, but then will still generate the link ``` WARNING: 'myst' cross-reference target not found: 'anchor-below' [myst.xref_missing] ``` warning can be handled:...
With https://myst-parser--717.org.readthedocs.build/en/717/syntax/cross-referencing.html#customising-external-url-resolution, you can also specifically denote a link as "external": ```markdown This is a [reference to an anchor below](#anchor-below){.external}. ```
I've had an initial play around with this now: https://github.com/executablebooks/MyST-Parser/blob/de31423d17e17ab0e9e04ea30b67556b4ede9411/myst_parser/_docs.py#L383 Its nothing "rigourous" but its looking quite nice in the documentation, like: https://myst-parser.readthedocs.io/en/latest/syntax/cross-referencing.html#reference-roles
Hey gang, so yeh I wanted this also, plus didn't really like the whole having to have it hosted on RTD to get it working. So I created my own...
You can use the Context object no? ```python import typer app = typer.Typer() @app.callback() def main_app( ctx: typer.Context, verbose: Optional[bool] = typer.Option(None, help="Enable verbose mode.") ): obj = ctx.ensure_object(dict) obj["verbose"]...
Heya, `usedforsecurity` was only added in Python 3.9 https://docs.python.org/3/library/hashlib.html#hash-algorithms, so some handling for