kaamaru
fdf75e8b5b
Update Parsedown.php
...
This solves a bug which stops referenced links formatting correctly when a space is inserted before a reference to a link right after a list.
This is caused because parsedown think's it's a secondary list rather, so it jumps to the next line.
Here is an example:
+ [Google][2]
+ [Youtube][1]
[1]: http://youtube.com
[2]: http://google.com
2013-11-16 22:20:00 +00:00
Emanuil Rusev
38300323a6
simplify readme
2013-11-16 18:45:13 +02:00
Emanuil Rusev
96609329b9
improve readme
2013-11-16 09:51:01 +02:00
Emanuil Rusev
e497acb6dc
escape sequences with double digit codes do not get decoded properly
2013-11-16 02:05:31 +02:00
Emanuil Rusev
30e436ec7d
simplify tests
2013-11-16 02:05:31 +02:00
Emanuil Rusev
3972f18881
improve readme
2013-11-14 00:50:00 +02:00
Emanuil Rusev
4fb12be60a
improve introduction
2013-11-13 01:52:59 +02:00
Emanuil Rusev
f8b07611d3
homepage » home
2013-11-13 01:47:38 +02:00
Emanuil Rusev
21d7f75f5b
improve readme
2013-11-13 01:38:29 +02:00
Emanuil Rusev
a4fb0651d5
resolve #27
2013-11-13 01:07:39 +02:00
Emanuil Rusev
50a58eab16
Merge pull request #29 from hkdobrev/multi-line-emphasis
...
Allow multi-line emphasis. Fix #28 .
2013-11-12 12:46:05 -08:00
Haralan Dobrev
1f347e17eb
Allow multi-line emphasis. Fix #28 .
2013-11-12 19:22:17 +02:00
Emanuil Rusev
df3db71698
add 5.2 to PHP versions to test against
2013-11-10 11:02:18 +02:00
Emanuil Rusev
a37f5ff31e
improve tests
2013-11-10 10:44:52 +02:00
Emanuil Rusev
8e6f4cf7b8
leading spaces should not get trimmed
2013-11-09 22:23:56 +02:00
Emanuil Rusev
ee9a1e92c0
remove goto comment
2013-11-09 00:40:13 +02:00
Emanuil Rusev
689ef24cc5
strip trailing spaces
2013-11-08 23:40:00 +02:00
Emanuil Rusev
4403fe4d96
labels of reference links should be case insensitive
2013-11-08 21:59:26 +02:00
Emanuil Rusev
400c8f7d46
simplify regex for inline link in attempt to resolve #23
2013-11-08 00:24:40 +02:00
Emanuil Rusev
379cbf34b3
parse_block_elements doesn't have to use ltrim on lines with no indentation
2013-11-07 22:48:15 +02:00
Emanuil Rusev
b6c8cac512
optimize quick paragraph
2013-11-07 22:46:01 +02:00
Emanuil Rusev
0e9202689e
escaping of "<" breaks span-level html
2013-11-05 21:40:33 +02:00
Emanuil Rusev
7249d02cff
code blocks get unwanted empty lines
2013-11-05 10:21:48 +02:00
Emanuil Rusev
ecf86b073e
error when last line consists of 1-3 spaces
2013-11-05 10:17:19 +02:00
Emanuil Rusev
b12973415f
parse link references as blocks to improve performance
2013-11-05 00:57:16 +02:00
Emanuil Rusev
6d113f47fb
rearrange block types to optimize performance
2013-11-04 09:28:50 +02:00
Emanuil Rusev
d4d3612710
escaping for special characters
2013-11-03 17:32:45 +02:00
Emanuil Rusev
2e314ad474
resolve #24
2013-11-02 21:42:55 +02:00
Emanuil Rusev
e475602e2f
simplify parsing of code blocks
2013-11-02 02:18:13 +02:00
Emanuil Rusev
f43f54b877
remove redundant parse_inline_elements call
2013-10-23 00:50:32 +03:00
Emanuil Rusev
d733acc94e
add .idea to .gitignore
2013-10-23 00:44:21 +03:00
Emanuil Rusev
6a0695deb9
correct spelling of $link_definition
2013-10-13 22:52:36 +03:00
Emanuil
5dd40e7adf
add test for horizontal rule
2013-09-24 22:53:42 +03:00
Emanuil
b9808f23e0
setext underlines should not work on interrupted paragraphs
2013-09-24 22:36:24 +03:00
Emanuil
47b1789430
resolve #9
2013-09-24 02:32:58 +03:00
Emanuil
f8119fa3cb
separate compiling from parsing
2013-09-24 01:19:17 +03:00
Emanuil
d306ee3db5
improve tests
2013-09-24 01:09:13 +03:00
Emanuil
e15241cb92
remove incomplete tests
2013-09-24 01:00:20 +03:00
Emanuil
7ab71ade06
optimize parsing of rule
2013-09-20 02:12:06 +03:00
Emanuil
64f82e1e2a
inline links should get parsed before reference links
2013-09-20 01:12:40 +03:00
Emanuil
f40dbdfb65
variable names should express what they represent rather than why they represent it
2013-09-19 23:54:28 +03:00
Emanuil
033c2b78c1
match blockquote comment
2013-09-19 23:28:12 +03:00
Emanuil
34035316df
NULL » null
2013-09-19 23:12:48 +03:00
Emanuil
f13214cfa7
single line blockquotes should also go through "parse_lines"
2013-09-18 19:53:44 +03:00
Emanuil
238b1029c0
remove "parse_blocks" method in favor of a more capable "parse_lines"
2013-09-18 00:27:35 +03:00
Emanuil
bc27850c41
improve emphasis test
2013-09-03 00:15:25 +03:00
Emanuil
3afeee3b19
parse * and _ emphasis types separately to optimize performance and improve readability
2013-09-03 00:14:04 +03:00
Emanuil
a94a45f955
reference_link test should reference md.png with a relative path
2013-09-02 22:12:43 +03:00
Emanuil
4af89c5087
reference links should be able to have their names on the next line
2013-08-31 22:27:38 +03:00
Emanuil
0352f01c7e
leading \n characters should not be parsed as part of first block
2013-08-31 21:44:23 +03:00