from IPython.display import display, HTML

cname = "target-section"

# 1. Print the Destination Anchor
display(HTML(f'<div id="{cname}"></div>'))

# 2. Print the Jump Link
display(HTML(f'<a href="#{cname}">Click here to jump to {cname}</a>'))


from IPython.display import display, Markdown

cname = "target-section"

# 1. Print the Destination Anchor (Markdown requires HTML for IDs)
display(Markdown(f'<div id="{cname}"></div>'))

# 2. Print the Jump Link
display(Markdown(f"[Click here to jump to {cname}](#{cname})"))
