Open nomicode opened 10 years ago
There is already some footnotes support in the parser, can you give some feedback on which parts of footnotes support needs improvement? I will also revisit the feature as well with latest Org mode changes.. https://github.com/wallyqs/org-ruby/blob/master/spec/html_examples/footnotes.org
Oh wow, this is awesome. I think I was missing the OPTIONS
block. (I am still very new to Org.) Is there any way to remove the ":" from the automatically generated "Footnotes:" header?
Not at this moment, this is also based from the original Org mode implementation, though there the test used can be customized to accomodate users of other languages. https://github.com/wallyqs/org-ruby/blob/master/lib/org-ruby/html_output_buffer.rb#L201 https://github.com/jwiegley/org-mode/blob/master/lisp/ox-html.el#L588
I suppose we could add a special option to be able to change it #+footnotes_title
, what do you think?
Ah, okay. Well, as much as I would like to customise it, if you introduce that change, your implementation diverges from the main one. That seems unwise. A document that displays in one way on Github, say, would display in another way in a different context.
Yes, so a bit tricky to be able to modify that default in the context of sites like Github. A setting like this would make more sense to be considered as part of the export options:
https://github.com/wallyqs/org-ruby/blob/master/lib/org-ruby/parser.rb#L303
Then when using it with Jekyll for example, it could be possible to add the export option: to_html(:footnotes_title => "Footnotes")
.
There is already some footnotes support in the parser, can you give some feedback on which parts of footnotes support needs improvement?
** Heading
Paragraph[fn:1: An inline footnote]
https://gist.github.com/maxnikulin/9aee674785dc909649be232ca834cd4e#file-issue-footnotes-org
** Heading
Paragraph.[fn:1: An inline footnote]
** Another heading
Another paragraph.
Text[fn:name]
Multiple references to the same footnote[fn:name]
have the same <a name="...">
attribute.
** Heading
Paragraph.[fn:1]
Another paragraph.[fn:1]
** Footnotes
[fn:1] An inline footnote
Text.[fn:: Anonymous footnote]
#+options: f:nil
Instead they are exported literally.
#+options: f:t
I would love to be able to use footnotes with Org on Github. How feasible is this?