Skip to content
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

More footnote support #20

Open
mizunashi-mana opened this issue Jul 28, 2016 · 1 comment
Open

More footnote support #20

mizunashi-mana opened this issue Jul 28, 2016 · 1 comment
Labels

Comments

@mizunashi-mana
Copy link

  • Add title on footnote ref

Setting title has strong advantage. Modern browser present a tooltip for the footnote (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title). This provides more useful for site seeing.

However, there are problems for coding because one-to-one correspondence between markdown footnote reference and html tag is not possible.

ref: https://github.com/GitbookIO/markup-it/blob/master/syntaxes/markdown/inline.js#L12

  • Remove sup tag for footnote id on reffn

Now, footnote id are rendering to '<sup>' + refname + '</sup>. '. However, normal rendered text is very strange, and if we try to fix appearance, needs special support for theme.

We should use ol or '<span>' + refname + '.</span>'.

ref:

MarkupIt.Rule(MarkupIt.BLOCKS.FOOTNOTE)

@noerw
Copy link

noerw commented Mar 23, 2017

Adding to this: It would be good to be able to distinguish between actual blockquotes and footnotes in the HTML (through a class?).
This would enable custom styling for footnotes, which is suboptimal right now.

(I tried adding some visual separation from the content, but was unable to do so. The closest i got was the following, but it breaks when there are actual blockquotes in the page content)

blockquote[id^="fn_"]:first-of-type { ..... }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants