GithubHelp home page GithubHelp logo

Footnotes about pen-paper-coffee-syntax HOT 3 CLOSED

nylki avatar nylki commented on June 10, 2024
Footnotes

from pen-paper-coffee-syntax.

Comments (3)

sopertob avatar sopertob commented on June 10, 2024

I found this in markdown.less and changed "light ink" to "orange." It works with the pandoc footnote variation but not the multimarkdown one.

`&.footnote, &.link, &.auto {
&.destination {
.uri {
// Same as general .underline for markups
text-decoration: none;
border-bottom: @invisible-ink;
border-width: 0px 0px 1px 0px;
border-style: none none solid none;
}
}

            // for now disabled as it is not reliable yet
            // position: relative;
            // top: -0.5em;
            // font-size: 85%;
            // font-weight:900;
            // so far comes from language-pfm

            // would be better?
            // font-style: normal;
            // vertical-align: super;
            // font-size: 85%;
            color:@orange;
        }`

from pen-paper-coffee-syntax.

nylki avatar nylki commented on June 10, 2024

Hey @sopertob!
Not sure if I understand correctly what you would like to have styled.
If you install language-pfm (pandoc flavoured markdown), footnotes like ^[compare @citationkey, p. 22] should be styled differently, as seen in the screenshots. Even the citation key should be highlighted.
Can you give an example of your multimarkdown variant? Which grammar are you using? language-gfm, language-pfm or language_markdown?

In the end, a syntax theme can only style what a specific grammar/language package (language-gfm, language-pfm, language-markdown) captures.
To see the captured scopes you can enable dev-tools in Atom (view->toggle development tools), and the use the element inspector to see wether individual parts of a citation eg. are actually captured. If that is so, they can be styled with CSS, otherwise not.

Does that make sense to you? :) Or am I missing our point?

from pen-paper-coffee-syntax.

sopertob avatar sopertob commented on June 10, 2024

This answers it some. I was looking to highlight (or change the background
to inline footnote text) in order to distinguish it from the body text. Pen
Paper Coffee style made footnotes a "light ink," I think, which was hard to
see as distinct from the regular text (in black). I changed the text to
orange in the *.less section I pasted in my initial query. I'm (trying) to
post an image of what I mean.[image: Inline image 1]

On Mon, Apr 11, 2016 at 11:08 AM, Tom Brewe [email protected]
wrote:

Hey @sopertob https://github.com/sopertob!
Not sure if I understand correctly what you would like to have styled.
If you install language-pfm (pandoc flavoured markdown
https://atom.io/packages/language-pfm, the footnotes should be styled
individually, as seen in the screenshots.

In the end, a syntax theme can only style what a specific grammar/language
package (language-gfm, language-pfm, language-markdown) captures.
To see the captured scopes you can enable dev-tools in Atom (view->toggle
development tools), and the use the element inspector to see wether
individual parts of a citation eg. are actually captured. If that is so,
they can be styled with CSS, otherwise not.

Does that make sense to you? :) Or am I missing our point?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#25 (comment)

from pen-paper-coffee-syntax.

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.