Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Komayo's avatar

vtalbot/markdown

Can anyone give me a example how can i import one of the .mds files in a template of blade, to show text formated with markdown?

I have the plugin and example file working in my app. But now iam lost.

0 likes
3 replies
xavitb's avatar

With the graham-campbell/markdown it works just doing

<div class="row">
        <div class="col-sm-12 col-lg-12">
            <div class="dash-wiki dash-unit">
                <dtitle>Wiki Project</dtitle>
                <hr>
                {{ Markdown::render($wiki)}}
            </div>
        </div>
    </div>
1 like
Komayo's avatar

I was thinking about that plugin, its the one you use? Can you give me your personal opnion? Ty for the answer btw! :)

xavitb's avatar

Well I use it in an small project where i read my repos from bitbucket. So in the snippet i make a call to the bitbucket api to get the first page (Home) of every wiki repo and print it as markdown. Just used it for that.

Please or to participate in this conversation.