|
|
jonlabelle / ci-markdown Goto Github PK
View Code? Open in Web Editor NEWCI Markdown is a CodeIgniter library for parsing Markdown to HTML.
CI Markdown is a CodeIgniter library for parsing Markdown to HTML.
Hi,
From some articles I have read, it appears that the markdown standard has issues with code blocks and nested lists: the two are getting mixed up, so nested lists are styled the way code blocks would be styled.
The advice of the people on the forum is to use two spaces instead, but that makes it render as a paragraph.
To test it out:
$this->markdown->transform(' 1.1. Hello');
$this->markdown->transform(' 1.1. Hello');
You will see that the first one renders in a paragraph tag and the second one as a code block.
I guess it can be disputed as to where the issue lies (with the renderer or with markdown itself) but I figured that, since this issue is almost 10 years old, the markdown syntax won't be fixed (if it is at fault).
Is there something you can do about it?
Hi.
I'm using this library in my Project, but if i want to make new line i press ENTER and finally text is in the same line.
https://michelf.ca/projects/php-markdown/configuration/ how can I set "no_markup" only for one page? actually the conf is global, how can i overwrite the conf specifically on one page?
example: i want to allow html tags in my admin panel, but not when users post comments
Any way we can extend this to add our own syntax?
Predefined abbreviations are very useful but they don't work in specific cases:
Hello!
I have the following code:
{: .note}
>
>Allowing unrestricted access to MySQL on a public IP not advised, but you may change the address it listens on by modifying the `bind-address` parameter in `/etc/my.cnf`. If you decide to bind MySQL to your public IP, you should implement firewall rules that only allow connections from specific IP addresses.
And the library translate it to:
<p>{: .note}
></p>
<blockquote>
<p>Allowing unrestricted access to MySQL on a public IP not advised, but you may change the address it listens on by modifying the <code>bind-address</code> parameter in <code>/etc/my.cnf</code>. If you decide to bind MySQL to your public IP, you should implement firewall rules that only allow connections from specific IP addresses.</p>
</blockquote>
Any solution to return a <blockquote class="note">...
?
Thank you! ๐
Is there a way to use Markdown Extra with this library?
I'd like to explain some words, but they are not abbreviations, so it's wrong to explain these words with <abbr title="">
I just would like to reproduce the system of abbrs but with some changes and only to certain <span>
, any idea how to proceed?
I read the code a bit but it looked very confusing, with meaningless names etc
I keep running into this error
A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI_Loader::$markdown
Filename: views/view_article.php
Line Number: 68
I am saving the Markdown data in a database and pulling that from the database and displaying in my code like this:
$string = $a->body;
$this->load->library('markdown');
echo $this->markdown->parse($string);
As soon as I remove "echo $this->markdown->parse($string);", I get no errors.
Any suggestions would help.
Hey,
currently there is no syntax highlighting supported.
Will you add this feature?
Usage:
var s = "JavaScript syntax highlighting";
alert(s);
From: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
The parser allows you to create links with a source such as javascript:alert('xss')
, this could lead to cross site scripting vulnerabilities when a content security policy is not in use. Thoughts?
Hello @jonlabelle ,
Can you please create a sample of markdown preview?
I can't make one. I tried the way of passing javascript variable to PHP but still not working.
Happy New Year!
Hi, i got this error whem i trying to load your lib.. what's wrong?
can this library parsing my data from database (html) to plain text ?
Just wanted to say this is awesome, and very easy to install and use.
Thank you!
Btw I didn't know all the possibilities of markdown-extra until i read carefully the original site. Might be interesting to put a more elaborate example.
# Heading
## Subheading with ID {#my_header}
### Subsubheading with class {.my_class}
<div style="color: purple" markdown=1>
<http://google.com>
</div>
_italic_ **bold**
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.