Skip to content

[downloadnb-comparison] external links in footnotes not working in both RST and MYST notebooks #54

Open

Description

@shlff

Hi @mmcky , the 4th issue I find is

  • external links in footnotes are not working in both RST and MYST versions of all notebooks with footnotes.

For example, please find a screenshot for lecture 04_linear_algebra (left: RST, right: MYST):

Screen Shot 2021-01-27 at 1 44 36 pm

The issue occurs in the following lectures (TBD):

Activity

  1. mmcky commented on Feb 1, 2021

    @mmcky
    Contributor

    thanks @shlff -- looks like markdown isn't rendered in the list -- is the link formed over two lines? If you edit the notebook can you get the link to work. If so please add solution here.

  2. added
    low-priority
    on Feb 1, 2021
  3. shlff commented on Feb 3, 2021

    @shlff
    MemberAuthor

    Thanks @mmcky . Please see the whole part of this footnote

    <p><a id=fn-mdt href=#fn-mdt-link><strong>[1]</strong></a> Although there is a specialized matrix data type defined in NumPy, it’s more standard to work with ordinary NumPy arrays. See [this discussion](https://python-programming.quantecon.org/numpy.html#matrix-multiplication).
    

    It seems that the link does not form over two lines.

  4. mmcky commented on Feb 8, 2021

    @mmcky
    Contributor

    @shlff would you mind copying the notebook here? Your right -- not split over lines. I wonder why jupyter isn't picking up the link in that context.

  5. shlff commented on Feb 9, 2021

    @shlff
    MemberAuthor

    Sure @mmcky . Please find the notebook here.

  6. mmcky commented on Feb 9, 2021

    @mmcky
    Contributor

    hey @shlff it looks like the leading html causes the jupyter notebook to not parse the paragraph as markdown

    Perhaps we should use:

    **Footnotes**
    
    <p><a id=fn-mdt href=#fn-mdt-link><strong>[1]</strong></a> 
        
    Although there is a specialized matrix data type defined in NumPy, it’s more standard to work with ordinary NumPy arrays. See [this discussion](https://python-programming.quantecon.org/numpy.html#matrix-multiplication).
    
    <p><a id=cfn href=#cfn-link><strong>[2]</strong></a> 
        
    Suppose that $ \|S \| < 1 $. Take any nonzero vector $ x $, and let $ r := \|x\| $. We have $ \| Sx \| = r \| S (x/r) \| \leq r \| S \| < r = \| x\| $. Hence every point is pulled towards the origin.
  7. mmcky commented on Feb 9, 2021

    @mmcky
    Contributor

    Actually we should probably update sphinx-tojupyter to use markdown

    **Footnotes**
    
    **[1]** Although there is a specialized matrix data type defined in NumPy, it’s more standard to work with ordinary NumPy arrays. See [this discussion](https://python-programming.quantecon.org/numpy.html#matrix-multiplication).
    
    **[2]** Suppose that $ \|S \| < 1 $. Take any nonzero vector $ x $, and let $ r := \|x\| $. We have $ \| Sx \| = r \| S (x/r) \| \leq r \| S \| < r = \| x\| $. Hence every point is pulled towards the origin.
  8. shlff commented on Feb 9, 2021

    @shlff
    MemberAuthor

    I love the 2nd change, @mmcky . Do you think we should manually update the leading in footnotes of all lectures with markdown?

  9. mmcky commented on Feb 9, 2021

    @mmcky
    Contributor

    This will need to be done in sphinx-tojupyter as the download notebook is generated from the source.

  10. shlff commented on Mar 11, 2021

    @shlff
    MemberAuthor

    Thanks @mmcky , this issue has not been solved yet and please see the screenshot of the notebook for lecture 04_linear_algebra downloaded from the site:

    Screen Shot 2021-03-11 at 11 10 33 am

  11. shlff commented on Jun 8, 2023

    @shlff
    MemberAuthor

    This issue still exists.

  12. mmcky commented on Nov 25, 2025

    @mmcky
    Contributor
    • Confirmed this is still an isssue but the markdown is correctly specified. Will need to see why the markdown link isn't rendered in colab.
    Image
  13. self-assigned this
    on Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

low-priority

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions