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

Support styled text in titles #225

Closed
mfenner opened this Issue Jan 6, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@mfenner
Member

mfenner commented Jan 6, 2015

As we are using CSL (Citation-Style Language) to store and display works, we should also support styled text in titles using the CSL approach: http://citationstyles.org/downloads/upgrade-notes.html#rich-text-markup-within-fields

  • <b> - bold
  • <i> - italics
  • <sc> - small-caps
  • <sub> - subscript
  • <sup> - superscript

<sc> is obviously not a proper HTML tag, and should be displayed as <span style="font-variant: small-caps;">Text</span>.

To implement this we need to:

  • support styled text in our import filters
  • don't strip out those tags when we sanitize the title
  • display styling correctly in the frontend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment