Giter Club home page Giter Club logo

Comments (8)

chrisgrieser avatar chrisgrieser commented on May 26, 2024 1

when I said that multi-line-footnotes do not work properly, I was referring to the edit mode.
Screenshot 2021-10-02 16 48 41

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.

chrisgrieser avatar chrisgrieser commented on May 26, 2024

I looked into this and it actually seems that Obsidian does not recognize multi-line-notes as such:
Screenshot 2021-09-27 00 47 27

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.

Parlazo avatar Parlazo commented on May 26, 2024

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.

chrisgrieser avatar chrisgrieser commented on May 26, 2024

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.

Parlazo avatar Parlazo commented on May 26, 2024
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

LinterFootnote

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.

Parlazo avatar Parlazo commented on May 26, 2024

LinterFootnote
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.

Parlazo avatar Parlazo commented on May 26, 2024
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.

Parlazo avatar Parlazo commented on May 26, 2024

My obsidian version = 0.12.15
My Linter version = 1.2.2
Both on windows

from obsidian-linter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.