leostera / tldr.jsx

📚 A Reactive web client for tldr-pages
https://tldr.ostera.io
MIT License
1.54k stars 75 forks source link

Remove braces {{arg}} #97

Open sjackman opened 7 years ago

sjackman commented 7 years ago

Could the markup braces be removed from the displayed pages? For example, the cut TLDR page displays (https://tldr.ostera.io/cut)

cut -c {{1-16}}

If the user copies and pastes this directly, the bash shell interprets it as

cut -c 1 6 { }

which gives the error message

❯❯❯ cut -c {{1-16}}
cut: 6: No such file or directory
cut: {: No such file or directory
cut: }: No such file or directory

Which is pretty confusing for someone new to the command line. It would be better I think to either remove the braces or convert it to italic or bold. For example

cut -c 1-16

waldyrious commented 7 years ago

or convert it to italic or bold

or underlined :)