The [article] format is a useful way of quoting a snippet from web page, and looks like this.
To do this by hand you use code like:
[article=https://wgxa.tv/news/beyond-the-podium/pipe-burst-at-state-farm-arena-causes-delay-in-absentee-vote-counts-in-fulton-county]FULTON COUNTY, Ga. -- According to Fox 5, Fulton County has a delay with processing and counting tens of thousands of absentee ballots due to a pipe break in the State Farm Arena.[/article]
However an easier way is to add a bookmarklet to your browser, with the code here: (also in the attached zip file.)
The simplest way to do this is to create a bookmark, then edit it, rename it to something like [article] and then copy in the code.
Then just highlight the text you want, and click the bookmarklet, and then paste into a post. Magic!
Article: FULTON COUNTY, Ga. -- According to Fox 5, Fulton County has a delay with processing and counting tens of thousands of absentee ballots due to a pipe break in the State Farm Arena.
To do this by hand you use code like:
[article=https://wgxa.tv/news/beyond-the-podium/pipe-burst-at-state-farm-arena-causes-delay-in-absentee-vote-counts-in-fulton-county]FULTON COUNTY, Ga. -- According to Fox 5, Fulton County has a delay with processing and counting tens of thousands of absentee ballots due to a pipe break in the State Farm Arena.[/article]
However an easier way is to add a bookmarklet to your browser, with the code here: (also in the attached zip file.)
JavaScript:
javascript:(function() {
function copyToClipboard(text) {
if (window.clipboardData && window.clipboardData.setData) {
/*IE specific code path to prevent textarea being shown while dialog is visible.*/
return clipboardData.setData("Text", text);
} else if (document.queryCommandSupported && document.queryCommandSupported("copy")) {
var textarea = document.createElement("textarea");
textarea.textContent = text;
textarea.style.position = "fixed"; /* Prevent scrolling to bottom of page in MS Edge.*/
document.body.appendChild(textarea);
textarea.select();
try {
return document.execCommand("copy"); /* Security exception may be thrown by some browsers.*/
} catch (ex) {
console.warn("Copy to clipboard failed.", ex);
return false;
} finally {
document.body.removeChild(textarea);
}
}
}
var markdown = '[article=' + window.location.href + ']'+window.getSelection().toString()+'[/article]';
copyToClipboard(markdown);
})();
The simplest way to do this is to create a bookmark, then edit it, rename it to something like [article] and then copy in the code.
Then just highlight the text you want, and click the bookmarklet, and then paste into a post. Magic!
Attachments
Last edited: