aboutsummaryrefslogtreecommitdiffstats

html-journal

this is a library for parsing html-journal format. it also includes a little tool to generate feed from a journal.

originally made by m15o. this repo includes a more strict version of the format.

for example, original implementation could parse this:

<h1>test</h1>
<p>some text</p>
<div>
    <section>
        <h2>2025-12-10</h2>
        <p>an entry</p>
    </section>
</div>

but this library will not. it expects a h1 heading, then some article tags at the same level that contain h2 heading, which starts with a YYYY-MM-DD date.

installation

$ go install git.sr.ht/~la_ninpre/html-journal@latest

usage

$ html-journal file.html 'url' > atom.xml

licence

ISC. see LICENCE file in the repo.