rjeschke / txtmark

Yet another markdown processor for the JVM
Apache License 2.0
449 stars 100 forks source link

support kbd tags #21

Closed Stwissel closed 9 years ago

Stwissel commented 10 years ago

Like Stackoverflow and Github (the stackoverflow are prettier)

rjeschke commented 9 years ago

You can always use inline HTML:

final String markdown = "Do not press <kbd>Alt</kbd>+<kbd>F4</kbd> now!";
final String result = Processor.process(markdown);
System.out.println(result);

Will print:

<p>Do not press <kbd>Alt</kbd>+<kbd>F4</kbd> now!</p>

I did not find anything about having specific markdown tags/elements to support this feature neither on GitHub nor Stackoverflow. Do you have an links to what you mean exactly?

Stwissel commented 9 years ago

I think the example I saw used inline html for keyboard too. Just checked the doku and couldn't find any simpler one. I'm cool with the line HTML