-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Support for anchors #1299
Comments
As it turns out this is currently being discussed in https://groups.google.com/forum/#!topic/pandoc-discuss/zlSp_u3oEO0. There is the question of whether anchors should be block or inline elements. While conceptually block seems like the more obvious choice, for supporting #1117 inline is slightly more convenient as |
This issue is demonstrated in https://github.com/bgamari/pandoc-citeproc/compare/anchors |
I had an email exchange with John about this a while back. (Checking back now.. it was 5am before a flight when it happened). I think the conclusion was for time being it was better to use empty span elements (with an identifier) rather than introducing a new element to the AST. What are your thoughts? |
This sounds like a reasonable approach. That being said, would this not be rather HTML/markdown-specific? How would this be handled for documents that targeted, e.g., latex? |
I think they get translated to |
What does an empty span element with an identifier look like? Using two backticks followed by After moving from AsciiDoc to Pandoc, almost everything is great, but the inability to succinctly insert anchors at any position (I'm currently writing |
we also want this |
You can already reference all elements that have attributes (by giving them an id) and there's a discussion to add attributes to all elements. Meanwhile, pandoc's markdown got its native span syntax, for an empty one:
|
@mb21 could you be in more details pls? I'm trying to convert markdown to rst, and anchors should be translated into - [feeAmountTickSpacing(uint24 fee)][]{#IUniswapV3Factory-feeAmountTickSpacing-uint24-}
# Function `feeAmountTickSpacing(uint24 fee) → int24` {#IUniswapV3Factory-feeAmountTickSpacing-uint24-}
A fee amount can never be removed, so this value should be hard coded or cached in the calling context But it gets rendered into - [feeAmountTickSpacing(uint24
fee)][]{#IUniswapV3Factory-feeAmountTickSpacing-uint24-}
.. _IUniswapV3Factory-feeAmountTickSpacing-uint24-:
Function ``feeAmountTickSpacing(uint24 fee) → int24``
=====================================================
A fee amount can never be removed, so this value should be hard coded or
cached in the calling context Which is invalid syntax. |
@Pzixel if you found a bug, please open a new issue. Questions are best send to the pandoc-discuss mailing list. Commenting on old issues is generally frowned upon, as it will notify everybody who participated in this issue. |
Oh sorry, I though it's related. I'm not sure if it's a bug or just not supported. |
It would be nice if the document AST would have some way of representing anchor points. This would enable features like #1117 and hyperlinked section, table, and figure references (proposed in #813).
The text was updated successfully, but these errors were encountered: