An initial prototype.
This commit is contained in:
parent
874d10ac5e
commit
af9d5ce688
11 changed files with 841 additions and 2 deletions
12
script/postprocess.js
Normal file
12
script/postprocess.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
window.onload = function(){
|
||||
// Convert ISO8601 To UTC
|
||||
for (element of document.querySelectorAll('#articles > ul > li > div > h4')) {
|
||||
timeStamp = new Date(element.textContent);
|
||||
element.textContent = timeStamp.toUTCString();
|
||||
}
|
||||
// Parse Markdown
|
||||
for (element of document.querySelectorAll('#articles > ul > li > div > p')) {
|
||||
markDown = element.textContent
|
||||
element.innerHTML = marked.parse(markDown);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue