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

Is rich text formatting supported in titles ? #156

Open
3 tasks done
glorieux-f opened this issue Jul 31, 2023 · 0 comments
Open
3 tasks done

Is rich text formatting supported in titles ? #156

glorieux-f opened this issue Jul 31, 2023 · 0 comments

Comments

@glorieux-f
Copy link
Contributor

glorieux-f commented Jul 31, 2023

Please follow the general troubleshooting steps first:

  • I read the README and followed the instructions.
  • I am sure that the used CSL metadata follows the CSL schema.
  • I use a valid CSL stylesheet

Bug reports:

Zotero support some rich text formatting for titles in bibliography.

"title": "Not closing <b> or <strong>unknown tag</strong>, kept as text ; <i>italic rendered</i>"

Zotero desktop client bibliography as HTML

<div class="csl-entry">
   <i>Not closing &lt;b&gt; or &lt;strong&gt;unknown tag&lt;/strong&gt;, kept as text ;
      <span style="font-style:normal;">italic rendered</span></i>
 (s. d.).</div>

citeproc-php

<div class="csl-entry">
    <i>Not closing &lt;b&gt; or &lt;strong&gt;unknown tag&lt;/strong&gt;, kept as text; 
    &lt;i&gt;italic rendered&lt;/i&gt;</i>.
 (s. d.).</div>

I’ve been advised by @dstillman about that, there is a special tagsoup parser in Zotero
https://github.com/zotero/zotero/blob/main/chrome/content/zotero/itemTree.jsx#L2610

As a quick fix, I use your “additionalMarkup” hook, but not with a full tagsoup parser.

Used CSL stylesheet:

apa.csl

Used CSL metadata

[
    {
	"id": "http://zotero.org/users/8989645/items/8WEPW7QK",
	"type": "article-journal",
	"title": "Not closing <b> or <strong>unknown tag</strong>, kept as text; <i>italic rendered</i>"
    }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant