chore: worker cleanup
This commit is contained in:
parent
8b2648f23f
commit
3aadaeb741
10 changed files with 464 additions and 425 deletions
4
workers/dynamic-pages/utils/formatters.js
Normal file
4
workers/dynamic-pages/utils/formatters.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
import markdownIt from 'markdown-it'
|
||||
|
||||
export const formatDate = (date) => new Date(date).toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' })
|
||||
export const md = markdownIt({ html: true, linkify: true })
|
Reference in a new issue