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
Following the proposal one should be able to link from an external source to something like webpage.url/#ex4.13, should the code that makes the cross-references for HTML also change the ID to #ex4.13 instead of #test?
Actually, for the HTML output, if you wanted, you could make a link using either #test or #ex4.13 work if line 276 set the div's ID to test, and then added an ID for something like the cell containing the example number itself to ex4.13:
With the following markdown from
readme.md
, the div's ID in the HTML output gets overwritten toex4.13
instead oftest
.pandoc-ling/docs/readme.html
Lines 722 to 731 in a9eae71
However, the cross-references using
[@last
], etc. maintaintest
as the ID to link to (the following is taken from readme.html, line 732):<code>[@last]</code> will be formatted as <a href="#test">(4.13)</a>
Likewise, in line 733:
<code>[@last hA1l0]</code> will work also, leading to <a href="#test">(4.13 hA1l0)</a>
and line 717:
<code>[@test]</code>, leading to <a href="#test">(4.13)</a>
The ID for the div gets reset for HTML output in line 276 of
pandoc-ling.lua
pandoc-ling/pandoc-ling.lua
Lines 268 to 277 in a9eae71
Following the proposal one should be able to link from an external source to something like
webpage.url/#ex4.13
, should the code that makes the cross-references for HTML also change the ID to#ex4.13
instead of#test
?pandoc-ling/pandoc-ling.lua
Lines 1538 to 1547 in a9eae71
The text was updated successfully, but these errors were encountered: