Questions tagged [parsedown]

Parsedown is a fast and extensible Markdown parser in PHP.

Parsedown is a Markdown parser in PHP.

27 questions
5
votes
1 answer

Laravel 5 Parsedown returning plain html tags to browser

I've installed parsedown (am using laravel 5) for parsing markdown and when I run it it is changing the markdown to html but the browser is plainly showing the parsed markdown instead of applying those particular styles for example when I run the…
user3714932
  • 1,253
  • 2
  • 16
  • 29
4
votes
2 answers

Parsedown set image width and height

Currently I use CodeIgniter 3.1.3 and Parsedown / Markdown Guide With parse down I would like to be able to set the width and height of the image ![enter image description][1] [1]: http://www.example.com/image.png '100x200' <-- widthxheight I try…
user4419336
3
votes
1 answer

How to add custom text on Markdown' Parsedown PHP parser

I have this Markdown text: ![alt](/md.png "title") And after converting it to HTML with Markdown' Parsedown PHP parser (http://parsedown.org/) I get:

alt

I need to add certain values before and…
adelriosantiago
  • 7,762
  • 7
  • 38
  • 71
2
votes
3 answers

How to extend Parsedown to add a class to table tags

I want to write an extension for Parsedown so that I can add a default class to each of the table tags. I've found that I can successfully hack the source code by adding lines to assign attributes in the blockTable function (around line…
jcropp
  • 1,236
  • 2
  • 10
  • 29
2
votes
1 answer

Extend class in PHP

I am trying to extend a class: class CustomParsedown extends Parsedown { protected function blockComment($Line) { return; } protected function blockCommentContinue($Line, array $Block) { return; } protected function blockHeader($Line) {…
Streetlamp
  • 1,537
  • 2
  • 15
  • 27
1
vote
1 answer

Parsedown: sub/superscript

The current version of Parsedown 1.8.0-beta-5 doesn't have a builtin syntax for sub/superscript. Although CommonMark doesn't specify such syntax, several other lightweight markup languages (ex: Parsedown Extreme, Textile) use a syntax similar to the…
Mark Messa
  • 440
  • 4
  • 22
1
vote
1 answer

Laravel make internal links with parsedown library

after installing erusev/parsedown library package i want to make internal links with Markdowns like with this code: $Parsedown = new Parsedown(); echo $Parsedown->text("* [Hello](#hello) * [Hello World](#hello-world) …
DolDurma
  • 15,753
  • 51
  • 198
  • 377
1
vote
2 answers

How to add class attribute for table element which parsedown gives?

I have some markdown files and I want to display them on my blog which developed by Laravel. So I think out such a solution: Controller public function display() { $pd = new Parsedown(); $text = Storage::disk('local')->get('x.md'); $html…
Sayakiss
  • 6,878
  • 8
  • 61
  • 107
1
vote
1 answer

SimpleMDE - Markdown embeding videos from Youtube

I 'm using SmpleMDE as my WYSIWYG editor and the Parsedown library for parsing the markdown and converting it into HTML. parsedown->text($post->content); ?> Everything works fine, the only problem is that I want to show up youtube…
ltdev
  • 4,037
  • 20
  • 69
  • 129
1
vote
1 answer

Composer & Parsedown - Class 'UserFrosting\\Parsedown' not found

I managed to install Parsedown using composer with "require": { ... "erusev/parsedown": "^1.6" }, and added the class path to the autoload section "autoload": { "classmap" : [ "controllers", "middleware",…
Luke G
  • 1,741
  • 6
  • 23
  • 34
1
vote
1 answer

Adding a css class to parsedown elements

Is it possible to add a css class name to elements marked down using parsedown? If so how? Is there any ready extension that does that?
Ayan
  • 2,738
  • 3
  • 35
  • 76
1
vote
1 answer

Parsedown for PHP blockquotes

I'm using Parsedown for a project. Having trouble with the quotes: $text = ">here's a quote

reply to quote"; echo $Parsedown->text($text); is outputting

"here's a quote "

"…

frosty
  • 2,779
  • 6
  • 34
  • 63
1
vote
3 answers

PHP file_get_contents not getting all content

I'm having a strange problem with the file_get_contents function of PHP, I'm currently creating an application which reads .md files. I have created a command which builds the .md files in a single html file which works perfectly. It puts all the…
Sven Buijsrogge
  • 139
  • 1
  • 13
1
vote
2 answers

PHP Parsedown get all headings

I use Parsedown for transforming my Markdown into HTML like: $pd->text('# My First heading'); In want automatically use the first site heading (h1) as an entry for a custom menu. I already had a look into the source, but couldn't figure out a good…
Tobias Redmann
  • 164
  • 1
  • 11
1
vote
1 answer

Parsedown, add sub/superscript

I am trying to add sub/superscript to Parsedown. Parsedown's functions seem like a jungle to me. I've been trying to understand it but have been unable to decipher it. Turning ~text~ into text seems to be more of a challenge than I'd…
Jesper Jacobsen
  • 151
  • 2
  • 13
1
2