snudown icon indicating copy to clipboard operation
snudown copied to clipboard

Code Formatting

Open robertmain opened this issue 7 years ago • 2 comments

It would be great if RFM supported formatted code snippets like GFM. So that

const buildselecthtml = (options, selected) => 
    $.map(options, option => 
        '<option ' + ((option.id === selected) ? ' selected="selected" ' : '') + ' value="' + option.id + '">' + option.name + '</option>')
    .join('');

Could become

const buildselecthtml = (options, selected) => 
    $.map(options, option => 
        '<option ' + ((option.id === selected) ? ' selected="selected" ' : '') + ' value="' + option.id + '">' + option.name + '</option>')
    .join('');

Which is a great deal easier to read

robertmain avatar Mar 06 '18 21:03 robertmain

Reddit's markdown parser is being rewritten into Rust, so I'm not even sure if this repository is "valid" anymore.

13steinj avatar Mar 07 '18 14:03 13steinj

Oh...ok - maybe I should raise this issue there instead then? Do you have a link?

robertmain avatar Mar 07 '18 19:03 robertmain