Skip to content

kbd element not considered as raw text #112

@denisdefreyne

Description

@denisdefreyne

kramdown.rb, line #184 specifies that the script, pre and code element have raw text, so that no smart typographical conversions are made (-- to en-dash etc).

I believe this list of elements should also include kbd. Otherwise, long-form commandline options (e.g. --version) need to be escaped:

Ruby may already be installed on your system. To check, open a terminal window
and type <kbd>ruby \--version</kbd>.

Without the backslash, the -- is turned into an en-dash.

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