function expandPost(pid, ptype) { realsource = $('#expand-src-' + pid); src = realsource.attr('realsrc'); realsource.attr('src', src); realsource.html(realsource); post = $('#post-' + pid); post.css('display', 'inline-block'); if (maxWidth <= widthBreak) { $('#post-thumb-' + pid).css('display', 'none'); post.parent().css('margin-left', '0.75rem'); } button = $('#expand-button-' + pid); button.children('i').attr('class', 'fa fa-minus-square-o'); button.attr('href', "javascript:collapsePost(pid=" + pid + ", ptype='" + ptype + "');"); }
https://google.com test https://google.com onettwo
Here are the new markup options:
links in text like https://google.com should automatically convert to clickable links now. the old markup-format still works too
and more importantly, code formatting. start your codeblock with ` ` ` (no spaces)
and end it with ` ` `
everything in between will be "code" formatting. this could also be useful to quote multiple blocks of text. demonstration:
function expandPost(pid, ptype) { realsource = $('#expand-src-' + pid); src = realsource.attr('realsrc'); realsource.attr('src', src); realsource.html(realsource); post = $('#post-' + pid); post.css('display', 'inline-block'); if (maxWidth <= widthBreak) { $('#post-thumb-' + pid).css('display', 'none'); post.parent().css('margin-left', '0.75rem'); } button = $('#expand-button-' + pid); button.children('i').attr('class', 'fa fa-minus-square-o'); button.attr('href', "javascript:collapsePost(pid=" + pid + ", ptype='" + ptype + "');"); }
^ example