Skip to content

Releases: tidiview/grav-plugin-markdown-rubytext

improved efficiency of HTML output getting rid of unecessary <rb> HTML tag

25 Dec 18:49
f6caf94
Compare
Choose a tag to compare

improved lightness efficiency of HTML output getting rid of unecessary <rb> HTML tag.
changed example link

add possibility to set lang attributes

07 Oct 18:44
Compare
Choose a tag to compare

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>

Standart display:
this-is-Pierre-GRIMAL

Added possibility of serial ruby

04 Oct 08:03
Compare
Choose a tag to compare
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

03 Sep 16:11
Compare
Choose a tag to compare
1.3.2

Add mention of future goals (please contribute)

added link to demo, repo and changelog pages

02 Sep 22:48
Compare
Choose a tag to compare

improved UTF-8 compatibility

02 Sep 10:57
Compare
Choose a tag to compare

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 )

24 Aug 09:19
Compare
Choose a tag to compare

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

02 Feb 11:30
Compare
Choose a tag to compare

added tagwrapping in the output structure for better compatibility with non ruby browsers

minor title fix

12 Feb 23:28
Compare
Choose a tag to compare

fix title to blueprints.yaml

1.0.0

10 Feb 17:52
Compare
Choose a tag to compare

This is the first version of 'grav-plugin-markdown-rubytext'.
See README for precise information.