Skip to content

Commit f05b001

Browse files
committed
Add workaround requested by @mMoliere to enable italic tei/markdown conversion to work with the XForms
1 parent d89d092 commit f05b001

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/xar-resources/services/get-rec.xql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ declare function local:markdown($nodes as node()*) as item()* {
6868
return
6969
"
"
7070

71-
case element(tei:emph)
71+
case element(tei:em)
7272
return
7373
(
7474
"*",

src/main/xar-resources/services/submit.xql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ declare function local:markdown($s) {
392392
for $node in fn:analyze-string($s, "\*(.*?)\*")/child::*
393393
return
394394
typeswitch($node)
395-
case element(fn:match) return <tei:emph>{$node/fn:group/node()}</tei:emph>
395+
case element(fn:match) return <tei:em>{$node/fn:group/node()}</tei:em>
396396
default return $node/node()
397397
};
398398

0 commit comments

Comments
 (0)