language-pfm icon indicating copy to clipboard operation
language-pfm copied to clipboard

stop styling of blockquote at beginning of citation marker

Open nylki opened this issue 9 years ago • 8 comments

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.

nylki avatar Mar 23 '15 11:03 nylki

Is it good like this?

screen shot 2015-07-05 at 17 33 49

leipert avatar Jul 05 '15 15:07 leipert

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

nylki avatar Jul 06 '15 11:07 nylki

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. bildschirmfoto von 2015-07-06 15-45-48

mention of author, and brackts in quote. This show the undesired behaviour. bildschirmfoto von 2015-07-06 15-45-33

interestingly, the problem arises only if the citekey is more than one character. bildschirmfoto von 2015-07-06 15-45-13

nylki avatar Jul 06 '15 13:07 nylki

Ha, funny. Will have a look :dancer:

Yes, it may be hacky within css, but I see no other way to do this.

leipert avatar Jul 06 '15 13:07 leipert

I found another curious thing bildschirmfoto von 2015-07-06 15-57-54

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?

nylki avatar Jul 06 '15 14:07 nylki

Hey there @leipert! :) Just wanted to ask, wether you found a solution yet, not urgent though.

nylki avatar Oct 01 '15 22:10 nylki

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

nylki avatar Oct 01 '15 23:10 nylki

Sorry for never responding. I am unable to maintain this project (see also #31)

leipert avatar Apr 14 '18 09:04 leipert