Skip to content

Option to set lang attribute on ruby tags #5

Open
@ElnuDev

Description

@ElnuDev

By default, most browsers render the Chinese variants of CJK characters. In order to get them to display Japanese, one needs to use the lang="ja" attribute on a parent element of the Japanese content. Of course, the quickest fix would be putting lang="ja" on the root <html> element, but this certainly isn't ideal if one's website language is English (or something other than Japanese) with then Japanese interspersed in it. It'd be great to have an option lets one set the lang attribute on all <ruby> tags that furigana-markdown-it outputs, i.e. replacing <ruby> with <ruby lang="ja"> or whatever one's preferred language is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions