-
-
Notifications
You must be signed in to change notification settings - Fork 150
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 short links #80
Conversation
Can you post a screenshot? What happens to the "foo" in HTML view? |
ormolu. See https://github.com/srid/neuron/blob/master/CONTRIBUTING.md
|
|
How can I make tests for this new feature ? I would imagine tests that test both the html output of a file and the graph output of a bunch of files, but I don't know how to write that myself. |
I think you should ignore the This PR should handle the single case of
I've been meaning to begin writing tests for link actions, but if you want to take stab, go ahead! Tests use hspec. Maybe add a |
From the docs in the diff,
I like the annotation feature in general. But if we finalize the spec, then we can't expect it to be a link with text "foo-bar" in the future (that would not be backwards compatible). I suppose the user could specify that the link should be rendered normally using a query like this:
|
What's the use for annotations ? Is it to make it easier to know which zettel it corresponds to ? Then I'd say
I'll let you do it, you know the codebase. I'll happily add tests to it once it's started though. |
Yes, annotations are mainly to act as an immediate visual hint when editing a zettel to know what a particular zettel ID refers to at first glance without having to open it. I prefer something like
The proposal at #70 currently stands at supporting alphanumeric IDs. Perhaps we could add extra characters, like
Alright. |
Added tests and merged in 0aac0fa |
This adds support for short
<1234567>
links, as discussed in #59. In fact what this does is render any[foo](1234567)
link as a zettel link. That can easily be changed if needed.Some questions: where should I document this ? Do you use a Haskell formatter and if yes which one ?