Skip to content
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.

Parse a block of markdown #15

Open
Vinze opened this issue Jun 28, 2022 · 1 comment
Open

Parse a block of markdown #15

Vinze opened this issue Jun 28, 2022 · 1 comment

Comments

@Vinze
Copy link

Vinze commented Jun 28, 2022

Would it be possbile to use the blade directive like this?

@parsedown
# How to setup you account
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Numquam obcaecati
atque adipisci ex ipsa eius odit. Amet illo possimus eius officiis quaerat
modi beatae, nemo ea deserunt minus a culpa.

## Checklist
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Aliquam nec nulla non lorem hendrerit pulvinar vel non justo.
- Pellentesque in ligula porta nibh auctor tristique.
@endparsedown

For now I've solved it by using a blade component but I guess it would be nice to have this functionality built in.

components/parsedown.blade.php:

@parsedown($slot)

Usage:

<x-parsedown>
(markdown content)
</x-parsedown>
@eagostini
Copy link
Member

Hey @Vinze, that would be in fact a nice addition. Let me see what I can do in the next few days.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants