Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lists not rendered properly with line() #855

Open
QuestionDevelopment opened this issue Oct 22, 2023 · 0 comments
Open

lists not rendered properly with line() #855

QuestionDevelopment opened this issue Oct 22, 2023 · 0 comments

Comments

@QuestionDevelopment
Copy link

QuestionDevelopment commented Oct 22, 2023

Hello everyone,
My apologizes if this is an issue with how I am utilizing the script but I read through the docs/issues and couldn't find any indication I was doing anything wrong. Obviously running the most up to date version of parsedown....my code :

$system = new \Parsedown();
$system->setBreaksEnabled(true);
$system->setSafeMode(true);
echo $system->line($data);

$data content is as follows

Lorem ipsum dolor sit amet, consectetur **adipiscing** elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

* trdt
* teadf
* adsfddf

output from line() is as follows :

Markdown

however if I use text() it works properly but I don't want the p tags

I appreciate any help you can provide.

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

No branches or pull requests

1 participant