TEIC / CETEIcean

TEI in HTML5 Custom Elements
BSD 2-Clause "Simplified" License
164 stars 36 forks source link

Problem with behaviours #42

Closed pharos-alexandria closed 3 years ago

pharos-alexandria commented 3 years ago

If I add a behaviour like

"add": [
    ["[place=margin]", ["<",">"]],
],

it behaves like expected:

<ἔξωθεν>

But if I add html-tags to the behaviour like

"add": [
    ["[place=margin]", ["<b>&lt;","&gt;</b>"]],
],

the output is

<>ἔξωθεν

So, the angle bracket from the second array isn't any more output after the word.

Is this expected, i.e. do I need to write a function for such cases? Or is it a bug?

hcayless commented 3 years ago

Probably a bug. I'm investigating it now.

hcayless commented 3 years ago

Should be fixed with cc59e9c. I'll try to do an update release later.

pharos-alexandria commented 3 years ago

Works! Thank you!