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 regular Markdown links sans .md
(or .org
) extension
#347
Comments
Emanote was not designed to support this in the first place. But since Obsidian allows it, I'm okay with Emanote doing it. |
.md
(or .org
) extension
Any update on this? Links are broken when using zk with emanote as well. |
@shalzz I welcome PRs. |
Hi, @srid I understand you welcome PRs, however I have no experience or knowledge in Haskell. |
Just taking notes for someone who wants to tackle this.
The backlinks message is displayed in pure $ do
raw <-
HP.rpInline
ctx
( tooltip
"Link is broken"
[ B.Strikeout $ one $ B.Str $ Link.unParseLink origInl
, B.Str "❌"
]
)
details <-
HP.rpInline ctx $
-- FIXME: This aside is meaningless for non-wikilink links (regular
-- Markdown links)
B.Span ("", ["emanote:error:aside"], []) $
one $
tooltip "Find notes containing this broken link" $
one $
B.Link B.nullAttr (one $ B.Emph $ one $ B.Str "backlinks") (url, "") I see two ways to proceed with this task:
I understand the decision is to try the second way. This needs some thought on how to redesign the described mechanism. |
Describe the bug
When I create a link of the form
[some text](path/to/existing/markdown/file)
, but without including the.md
extension in the path (e.g. try adding[neuron](guide/neuron)
todocs/index.md
), it is rendered as a broken link, with the backlinks link (in the live server mode) leading to the actualpath/to/existing/markdown/file
page:Tested at fcac634
To Reproduce
[neuron](guide/neuron)
todocs/index.md
.bin/run
.Expected behavior
I'd expect
[neuron](guide/neuron)
to render as an internal link just like[neuron](guide/neuron.md)
. If this is, for some reason (like , not acceptable, at least something less confusing than the broken link should be rendered.Screenshots
The text was updated successfully, but these errors were encountered: