generated at
Scrapbox書籍のformat@0.1.0
sb
title.pdf {pageNumber} [Gyazo URL] <=[prev page] | [next page]=> > PDF or OCR text > ...
前後へのリンクは先頭行でもいいかも

変換用関数
script.js
export function convert(basename, image, index, {created, updated, start = false, end = false, text} = {}) { const title = `${basename} ${index}`; const prevTitle = start ? '' : `[${basename} ${index - 1}]`; const nextTitle = end ? '' : `[${basename} ${index + 1}]`; const quotes = text?.split?.(/\n/)?.map?.(line => `>${line}`) ?? []; return { title, ...(created ? {created} : {}), ...(updated ? {updated} : {}), lines: [ title, `<=${prevTitle} | ${nextTitle}=>`, `[[${image}]]`, ...quotes, ], }; }
script.d.ts
export function convert(basename: string, image: string, index: number, options: { created?: number; updated?: number; start: boolean; end: boolean; text?: string,}): { title: string; created?: number; updated?: number; lines: string[]; };

#2022-07-10 13:47:16
#2021-03-02 12:50:10