Let’s Encrypt is a free, automated, and open Certificate Authority.
- Install tools for using the Let's Encrypt certificates using Certbot
sudo apt-get update \
sudo apt-get install software-properties-common
function wait (ms) { | |
return new Promise(resolve => setTimeout(() => resolve(), ms)); | |
} | |
export default async function capture(browser, url) { | |
// Load the specified page | |
const page = await browser.newPage(); | |
await page.goto(url, {waitUntil: 'load'}); | |
// Get the height of the rendered page |
$ pandoc -s <input>.docx --wrap=none --reference-links --extract-media=media -t gfm --filter ./despan.py -o <output>.md
いろいろと試した挙句、下記の観点でこれがベスト。
--wrap=none
勝手にwrapさせたくない(defaultではwrapしてしまう)--reference-links
--extract-media=media
docxに埋め込まれたpngなどを抽出できる-t gfm
github形式のmarkdownで出力したい(tableがpandoc defaultのmarkdownは他の形式になってしまう)