Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

WANTED: php talent for improvement of markdown-RubyText plugin code

Started by Muut Archive 9 years ago · 0 replies · 388 views
9 years ago

plugin-markdown-rubytext is one year old !
It would be great to make following 2 improvements to the PHP code on this occasion ♪
1- plugin construct method improvement:
actually, これは{r}日本語{/r:}です。 does not output. To work, its needs a extra space ` before{r}.... The final HTML output comes therefore with a undesired space before the Ruby tag output. It seems that thepreg_matchPHP function used to construct the output needs that space. The idea is to find another way so thatこれは{r}日本語{/r:}です。outputs without any undesired space. 2- plugin output improvement: from:<ruby><rb>日本語</rb><rt>にほんご</rt></ruby> to:<ruby><rb>日本語</rb><rp>(</rp><rt>にほんご</rt><rp>)</rp></ruby> Any suggestion, like integration to theshortcode` infrastructure that would reach those goals, is welcome. Please, feel free to make a pull request in the linked GITHUB plugin repository. Kindky asking the community ☆

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1282 9 years ago
Archive · by Muut Archive, 9 years ago
2 889 9 years ago
Archive · by Muut Archive, 9 years ago
2 4019 9 years ago
Archive · by Muut Archive, 9 years ago
1 2894 9 years ago
Archive · by Muut Archive, 9 years ago
3 1078 9 years ago