Releases: tidiview/grav-plugin-markdown-rubytext
Releases · tidiview/grav-plugin-markdown-rubytext
improved efficiency of HTML output getting rid of unecessary <rb> HTML tag
add possibility to set lang attributes
UPDATE CAUTION: removed valid syntax up until v1.3.1 {r}text{/r:annotation}
won't work anymore!
NEW SYNTAX is now: {r}text(annotation)text2{annotation2)text3{annotation3}{/r}
In your markdown file:
this is {r=ja/fr}ピエル(Pierre)・()グリマル(GRIMAL){/r}
will produce serial ruby output with lang attribute <ruby> and each <rt> HTML tags:
this is <ruby lang="ja"><rb>ピエル</rb><rp>(</rp><rt lang="fr">Pierre</rt><rp>)</rp><rb>・</rb><rp>(</rp><rt lang="fr"></rt><rp>)</rp><rb>グリマル</rb><rp>(</rp><rt lang="fr">GRIMAL</rt><rp>)</rp></ruby>
Added possibility of serial ruby
This is {r}日(に)本(ほん)語(ご){/r}.
will produce serial ruby output:
This is <ruby><rb>日</rb><rp>(</rp><rt>に</rt><rp>)</rp><rb>本</rb><rp>(</rp><rt>ほん</rt><rp>)</rp><rb>語</rb><rp>(</rp><rt>ご</rt><rp>)</rp></ruby>.
added mentions of future goals
1.3.2 Add mention of future goals (please contribute)
added link to demo, repo and changelog pages
1.3.1 Update CHANGELOG.md
improved UTF-8 compatibility
improved pregmatch redaction to:
preg_match('/(*UTF8)\{r}([^\s{]+){\/r:([^\s}]+)}/', $excerpt['text'], $matches)
result:
no break in php local development context anymore.
regex formula rewritten for better performance (thanks to huesersohn )
The plugin works now without a space BEFORE the shortcut formula.
The example below works now (it was not working with the previous version:
これは{r}日本語{/r:にほんご}です。
added <rp> tag wrapping
added
minor title fix
fix title to blueprints.yaml