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

Markdown works for single line but not works for multiple lines from Database #21

Open
ManiruzzamanAkash opened this issue Apr 29, 2022 · 0 comments

Comments

@ManiruzzamanAkash
Copy link

  • LaravelMarkdown Version: ^5.1
  • Laravel Version: ^8.75
  • PHP Version: 7.4

Description:

Markdown parse works well for single line, but when add multiple lines of markdown text, then it only parse the first line.

Steps To Reproduce:

We've stored markdown content in database. the content is like this as demo in Post ==> description column -

# Beautiful Markdown Document using Laravel Markdown
Learn about Markdown - [Markdown](https://en.wikipedia.org/wiki/Markdown)
----

#### PHP Markdown Example

```php
$name = "John";
$age = 20;
echo 'Hello ' . $name . ' you are ' . $age . ' years old.';


#### Image Example
![Markdown Logo](https://raw.githubusercontent.com/adam-p/markdown-here/master/src/common/images/icon48.png)
markdown()->parser()->parse($post->description);
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