typelevel / Laika

Site and E-book Generator and Customizable Text Markup Transformer for sbt, Scala and Scala.js
https://typelevel.org/Laika/
Apache License 2.0
410 stars 44 forks source link

introduce substitution variable `cursor.currentDocument.rawTitle` #512

Closed jenshalm closed 1 year ago

jenshalm commented 1 year ago

This is a fairly simple enhancement that introduces a new substitution variable cursor.currentDocument.rawTitle. In contrast to the existing cursor.currentDocument.title it strips all formatting so that it can be used in templates where formatting is not permitted. Also adjusts the Helium default template to use the new variable for the <title> tag.

fyi @j-mie6