alfredoramos / parsedown-extra-laravel Goto Github PK
View Code? Open in Web Editor NEWA Parsedown Extra package for Laravel and Lumen
License: GNU General Public License v3.0
A Parsedown Extra package for Laravel and Lumen
License: GNU General Public License v3.0
The Markdown::parse()
method is announced as deprecated.
We find the following information into the PHPdoc :
@deprecated Function overloaded to maintain compatibility.
Which other method should we use to avoid problems in the future versions ?
Adjust composer.json
to include Laravel 5.6
I don't want to run the HTML through Purifier, so I tried to disable it via the config, but no luck:
$html = markdown($doc->body(),
[
'purifier' => [
'enabled' => false
]
]
);
What's the correct way to do this?
$dirty_html = Markdown::parse('[test](http://vien.tech) http://vien.tech', ['config' => [
'URI.Host' => 'localhost',
'URI.DisableExternal' => true,
'HTML.Nofollow' => true
]]);
or
$dirty_html = Markdown::parse('[test](http://vien.tech) http://vien.tech', ['config' => 'default]);
and the default config includes 'HTML.Nofollow' => true,
the output html without rel=nofollow
, but when I used HTMLPurifier directly, it worked.
like this:
<p><a href="http://vien.tech">jj</a> <a href="http://vien.tech">http://vien.tech</a></p>
$config = HTMLPurifier_Config::createDefault();
$config->set('HTML.Nofollow', 'true');
$purifier = new HTMLPurifier($config);
$clean_html = $purifier->purify($dirty_html);
dump($clean_html);
output:
<p><a href="http://vien.tech" rel="nofollow">jj</a> <a href="http://vien.tech" rel="nofollow">http://vien.tech</a></p>
what's the problem?
Hello! Could you add the compatibility to laravel 5.5?
Thank you!
When using Laravel 9 and PHP 8.1 I get this error โ and yes, I know it was just released! :)
illuminate/filesystem[v8.0.0, ..., v8.11.2] require php ^7.3 -> your php version (8.1.2) does not satisfy that requirement.
Perhaps due to changes to https://laravel.com/docs/9.x/upgrade#flysystem-3.
Currently there's an issue with the emojis (if enabled) inside code
/textarea
tags as it shows them as its markdown syntax replacement for images.
I'm trying to fix this as soon as possible, however if someone wants to help I'd appreciate it.
As HTML Purifier's HostBlacklist only manages to check the presence of each string on the current domain name, the use of t.co in the filters list leads to too many false positives, since it will match every .com (or .co.uk and so on) ending by a single "t".
At least, t.co should be removed from config/parsedown.php
Hi,
I would love to write a parse down extension ( https://github.com/erusev/parsedown/wiki/Tutorial:-Create-Extensions ). Is that possible with this laravel version
Please update the package. Thank you.
Doesn't currently work in Laravel 10
Is it possible to set the setBreaksEnabled
option somewhere globally? I tried putting this to the parsedownextra.php file but that didn't work.
Class ParsedownExtraTest located in C:/Users/Yo/Desktop/secretproject/vendor/erusev/parsedown-extra\test\ParsedownExtraTest.php does not comply with psr-0 autoloading standard. Skipping.
Any Ideas, how to fix it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.