Support styled text in titles #225

Closed
mfenner opened this Issue Jan 6, 2015 · 0 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
@mfenner mfenner added the enhancement label Jan 6, 2015
@mfenner mfenner pushed a commit that referenced this issue Jan 6, 2015
Martin Fenner use title_display in plos import to preserve formatting. #225 9496c2f
@mfenner mfenner pushed a commit that referenced this issue Jan 6, 2015
Martin Fenner format work titles in Javascript using HTML tags. #225 94887ce
@mfenner mfenner pushed a commit that referenced this issue Jan 6, 2015
Martin Fenner keep tags allowed in CSL when sanitizing titles. #225 eb24bfd
@mfenner mfenner pushed a commit that closed this issue Jan 6, 2015
Martin Fenner Display work titles as HTML. Closes #225. d7111cf
@mfenner mfenner closed this in d7111cf Jan 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment