xsl/gemini.xsl: add support for <blockquote/>, <event/>

This commit is contained in:
Astro 2022-03-04 21:06:01 +01:00
parent 61afd7cc3d
commit 3575324a93
1 changed files with 31 additions and 1 deletions

View File

@ -6,7 +6,7 @@
xmlns:crypto="http://exslt.org/crypto">
<output method="text" encoding="utf-8"/>
<strip-space elements="page item div p ul ol li blockquote"/>
<strip-space elements="page item image event div p ul ol li blockquote"/>
<include href="date.xsl"/>
<template match="/page">
@ -251,6 +251,30 @@
<text>)&#10;</text>
</template>
<template match="event/start">
<text>* Beginn: </text>
<call-template name="get-datestring">
<with-param name="date" select="."/>
</call-template>
<text>&#10;</text>
</template>
<template match="event/end">
<text>* Ende: </text>
<call-template name="get-datestring">
<with-param name="date" select="."/>
</call-template>
<text>&#10;</text>
</template>
<template match="event/location">
<text>* Ort: </text>
<call-template name="normalize-paragraph">
<with-param name="text" select="normalize-space(.)"/>
</call-template>
<text>&#10;</text>
</template>
<template match="image"/>
<template match="ol">
@ -287,6 +311,12 @@
<text>&#10;</text>
</template>
<template match="blockquote">
<text>```&#10;</text>
<apply-templates/>
<text>```&#10;</text>
</template>
<template name="normalize-paragraph">
<param name="text"/>