Fork me on GitHub
#cryogen
<
2021-06-11
>
kwladyka20:06:43

Is a way to get with customisation markdown as it is without HTML? This is needed for <script type=application/ld+json> for SEO purpose. I see only HTML content in data.

Jakub Holý (HolyJak)21:06:05

Sorry, I don't understand

kwladyka22:06:08

I need post.content as a raw markdown instead of HTML DOM

kwladyka10:06:32

eventually something to HTML -> text

Jakub Holý (HolyJak)18:06:59

I guess you are on your own then. Look at the code, it is quite straightforward.

Jakub Holý (HolyJak)14:06:21

You can see it is the markup plugin that actually reads the file and at once turns it into HTML https://github.com/cryogen-project/cryogen-flexmark/blob/master/src/cryogen_flexmark/core.clj So you could e.g. make your own impl. of the Markup protocol that copies what cryogen-flexmark does but also adds the changes you need.

👍 2