Can you show the MD content and the code for converting it?
What is your local php environment? Docker?
Hey Folks,
I was wondering if anyone had any experience with the Laravel markdown package? I have installed it, and also installed the NPM package for shiki, and if I push this up to a server on Laravel Forge, the parsing seems to work correctly. However, in my local development environment it just does not parse at all. I get:
<div>
<h2 id="foo">Foo</h2>
$foo = 'bar';
<h1 id="good-to-know">Good to know</h1>
</div>
Whereas on the forge server I get:
<div><h2 id="foo">Foo</h2>
<pre class="shiki" style="background-color: #ffffff"><code><span class="line"><span style="color: #24292F">$foo </span><span style="color: #CF222E">=</span><span style="color: #24292F"> </span><span style="color: #0A3069">'bar'</span><span style="color: #24292F">;</span></span>
<span class="line"></span></code></pre>
<h1 id="good-to-know">Good to know</h1>
</div>
Has anyone any idea what might cause the different behaviour between environments. It is probably worth noting I had to upgrade to PHP 8 to use this package, and I did this locally as well as provisioning a new server running 8.1. My theory is that it is a missing dependency, but I just don't know why.
Any tips or help would be greatly appreciated!
Andrew
@drewdan It might be. Sadly I dont have a windows pc to test with. You can try running just this bit, to see if find anything. My guess is no
$path = (new ExecutableFinder())->find('node', 'node', [
'/usr/local/bin',
'/opt/homebrew/bin',
]);
Please or to participate in this conversation.