31bot / ToDo

1 stars 0 forks source link

YAML to Markdown Ruby Script #7

Closed joulli closed 7 months ago

joulli commented 7 months ago

例: yaml = YAML.load(./data.yaml) md.file = ./${yaml.title} md.title = yaml.title md.body = 自由記述 repeat[(“*”) ${body.foreword.title} /n ${body.foreword.body} ]

repeat[(“1.”) ${body.volume.”詞書(現代語訳)”} /n ${body.volume.author} /n ${body.volume.歌} ]

joulli commented 7 months ago

ERBを使えばよい。綺麗ではないが

joulli commented 7 months ago

HTMLに直接出力すればよいらしい