Comments (8)
when I said that multi-line-footnotes do not work properly, I was referring to the edit mode.
Otherwise, I have already understood your issue the first time and already said that it will be addressed, pending on issue #76 which is needed for that.
Also as a side note, please use the edit-function when you want to add something after submitting a comment. Reason is that anyone subscribed to this issue (or all issues of this repository) will get a separate notification for each comment you make, which can be a bit annoying.
from obsidian-linter.
I looked into this and it actually seems that Obsidian does not recognize multi-line-notes as such:
I am not totally sure whether multi-line-footnotes are part of the markdown specification. But even if they are and this is a bug on Obsidian's side, I am unsure whether the Linter plugin should implement this when Obsidian clearly does not seem to recognize multi-line-footnotes.
from obsidian-linter.
this is what obsidian tells me in the obsidian help
under Format your notes
### Footnotes
```md
Here's a simple footnote,[^1] and here's a longer one.[^bignote]
[^1]: meaningful!
[^bignote]: Here's one with multiple paragraphs and code.
Indent paragraphs to include them in the footnote.
`{ my code }`
Add as many paragraphs as you like.
```
Here's a simple footnote,[^1] and here's a longer one.[^bignote]
[^1]: meaningful!
[^bignote]: Here's one with multiple paragraphs and code.
Indent paragraphs to include them in the footnote.
`{ my code }`
Add as many paragraphs as you like.
```md
You can also use inline footnotes. ^[notice that the carat goes outside of the brackets on this one.]
```
You can also use inline footnotes. ^[notice that the carat goes outside of the brackets on this one.]
https://help.obsidian.md/How+to/Format+your+notes
similar here https://www.markdownguide.org/extended-syntax#footnotes
and it seems to work, and if linter is uninstalled it all keeps together where it is
with linter installed and even deactivated it always moves the first line and the block below does not move and stays as a meaningles fragment at the place
from obsidian-linter.
Hmmm. I see. Still, Obsidian does display multi-line-footnotes wrong in the editor.
Nevertheless, implementing it with regexes could be quite finicky and is likely prone to bugs. I think this will be best addressed with the markdown parser platers is looking into? (#76)
from obsidian-linter.
Some Text
Some Footnote will be here [^Footnote] inline the text.
[^Footnote]: Below
this is a footnote
and it contains a list
- this is a item
- this is cool
```
bsidian does display this
```
pretty nice
this is text below the footnote and multiple footnotes can follow
This is a multiline footnote in obsidian and i think the display is not wrong. When clicking on it Obsidian does jump to it and highlight it for an second as shown. The footnote contains text a list and code, below the footnote the regular text goes on.
I think linter should move such blocks as a block to the bottom and never just the first line because it will disassemble all footnotes instantly and break them and a user has then to uninstall (not only deactivate) linter and then sort all the initial lines of every footnote block manually back to fix them.
With some other obsidian plugins such footnotes even can popup in a box when mouse is over the anchor and it looks exactly as it should look in a box
from obsidian-linter.
Here you see the same footnote with the better footnote
plugin as a popup instead of a seperate footnote section that is seperated from the main text atthe bottom of the note.
https://github.com/aidenlx/better-fn
how ever if you use such multiline footnotes while linter does only move the first anchor-line to the bottom while the rest stays disconnected in the note where it is, it will messup all footnotes and you have to reasign all anchor-lines to the right footnotes, and as soon you save the note you have to do it again until you uninstall linter completely.
this is may not so problematic if you use 3 footnotes. But if you use 100 footnotes it will not get boring when reassigning all anchor lines to the correct footnote.
from obsidian-linter.
Some Text
Some Footnote will be here [^Footnote] inline the text.
this is a footnote
and it contains a list
- this is a item
- this is cool
```
bsidian does display this
```
pretty nice
this is text below the footnote and multiple footnotes can follow
[^Footnote]: Below
this is what linter does when moving all footnotes to the bottom of the note
you see again the same footnote
but after linters moving action the anchor of the footnote is at the bottom while the rest stays where it is, and this will break the whole footnote block as one block and reduce it to the anchor line while the rest of the block will look like code out of context.
from obsidian-linter.
My obsidian version = 0.12.15
My Linter version = 1.2.2
Both on windows
from obsidian-linter.
Related Issues (20)
- Bug: Linter Runs Custom Commands even When All Custom Commands Are Blank HOT 5
- FR: Don't change cursor position on lint, and scroll to current line after linting if moved HOT 5
- Bug: Issues with No Bare URLs rule HOT 5
- Some linting rules disrupts header fold states HOT 5
- Question: Possible to Save Current Time When Using Template to Create Note HOT 3
- FR: Add option to skip Liquid tags and content wrapped by them HOT 2
- Bug: forbidden character combinations while copy & pasting the text of a website to a note HOT 4
- FR: Add option to save YAML timestamps in UTC
- FR: Keep Title if It Already Exists HOT 6
- FR: Ignore hyphens in "Space between Chinese Japanese or Korean and English or numbers" HOT 11
- Bug: MisspellingToCorrection not check correctly if my default language in OS settings is English HOT 3
- Bug: `Empty Lines Around Code Fences` can cause problems with nested callouts HOT 1
- FR: Don't auto-complete acronyms
- Bug: Created date gets updated to a different timezone HOT 19
- Question: How do I increase the number of new lines to two before a heading? HOT 2
- Bug: YAML Key Sort option removes multi-line content after literal operator `|` HOT 4
- Bug: tildes in URLs cause the URL to be broken HOT 1
- Bug: "Preserve existing aliases section style" should check Linter's array section style setting to avoid >1 lint HOT 6
- Bug: Indentations for math block removed from callouts or block quotes HOT 5
- Bug: auto “created” and “modified” date time in custom format. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-linter.