Skip to content
Snippets Groups Projects
Commit d6e45925 authored by Thomas Wood's avatar Thomas Wood
Browse files

Rewrite bibtex superscripts to html

parent f4a8ac58
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,9 @@ scholar:
use_raw_bibtex_entry: true
bibtex_skip_fields: ['month_numeric']
bibtex_filters:
- superscript
- latex
sort_by: year
order: descending
......
module Jekyll
class Scholar
class Superscript < BibTeX::Filter
def apply(value)
value.to_s.gsub(/\\textsuperscript\{([^}]+)\}/) {
"<sup>#{$1}</sup>"
}
end
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment