language-pfm
language-pfm copied to clipboard
stop styling of blockquote at beginning of citation marker
the following two examples are all scoped as comment.quote including the citation markers [S.175] and ^[S.175]:
normal citation:
> "This is a quote is a quote is a quote, saying very useful things in relation to the rest of the text."[@author]
footnote:
> "This is a quote is a quote is a quote, saying very useful things in relation to the rest of the text."^[compare to @author]
Better would be to have that scope until (excluding) the [ or the ^ which indicates a citation for pandoc, so that the citation markers would regain their own styling, even when directly after a blockquote.
Is it good like this?
~~Yes. As long as the prefix (in your example compare to) can be styled independently, which it seemingly is in the second example (bold type).~~
edit: I just checked out your latest push. Let me see what you exactly did and then I'll give new feedback. :) edit2: It's good this way now!
Btw. I like your use of superscript. Not sure if it makes sense for longer footnotes though. Will experiment with it.
I found a bug: when a quote has brackets inside, there seems to be a conflict with citation brackets as soon as there is a citekey.
how it should be styled. without brackets in quote.

mention of author, and brackts in quote. This show the undesired behaviour.

interestingly, the problem arises only if the citekey is more than one character.

Ha, funny. Will have a look :dancer:
Yes, it may be hacky within css, but I see no other way to do this.
I found another curious thing

I suppose it does that, because in the footnote sample the block begins at p.1 whereas in the first on it begin with [ which is standard text.
It would be cool though to mark the [ and ] as .support. And the text inside as a separate class. So you could style a list like normal text, as it might not be a good idea to style page abbreviations (p., S.) as list. Does this look like a good idea to you?
Hey there @leipert! :) Just wanted to ask, wether you found a solution yet, not urgent though.
Btw. somebody found another unwanted behaviour when having a footnote with a standard citation in one line, thought I'd link it here, in case you want to investigate.
https://github.com/nylki/pen-paper-coffee-syntax/issues/20#issuecomment-144845830
Sorry for never responding. I am unable to maintain this project (see also #31)