update eleventy config

This commit is contained in:
Paul Mineev
2022-01-18 13:09:30 -06:00
committed by Umputun
parent 5d1f021667
commit aabee8312d
2 changed files with 7 additions and 5 deletions
+6 -3
View File
@@ -27,10 +27,12 @@ function noteContainer() {
}
function markdownTableWrapper(md) {
md.renderer.rules.table_open = function(tokens, idx, options, _, self) {
return `<div class="overflow-x-auto">` + self.renderToken(tokens, idx, options)
md.renderer.rules.table_open = function (tokens, idx, options, _, self) {
return (
`<div class="overflow-x-auto">` + self.renderToken(tokens, idx, options)
)
}
md.renderer.rules.table_close = function(tokens, idx, options, _, self) {
md.renderer.rules.table_close = function (tokens, idx, options, _, self) {
return self.renderToken(tokens, idx, options) + `</div>`
}
}
@@ -103,6 +105,7 @@ module.exports = function (eleventyConfig) {
)
return {
markdownTemplateEngine: false,
dir: {
input: 'src',
output: 'build',
+1 -2
View File
@@ -1,5 +1,3 @@
const fetch = require('node-fetch')
const DEFAULT_DATA = { latestVersion: '' }
let currentData = null
@@ -8,6 +6,7 @@ module.exports = async function getLatestReleaseVersion() {
return currentData
}
try {
const fetch = await import('node-fetch')
const res = await fetch(
'https://api.github.com/repos/umputun/remark42/releases'
)