Christopher Jeffrey
49006dd949
implement xhtml option for self-closing elements. fixes #330 .
2014-02-11 15:26:45 -06:00
Christopher Jeffrey
613bf6ac63
ensure javascript: protocols are not encoded in entities and references.
2014-01-10 01:46:05 -06:00
Christopher Jeffrey
cd507dd55a
rely on options passed to the renderer object.
2014-01-10 01:07:45 -06:00
Christopher Jeffrey
5e716661fe
completely escape fenced code.
2014-01-10 01:07:45 -06:00
Christopher Jeffrey
904c71b771
sanitize javascript: links.
2014-01-10 01:07:45 -06:00
Christopher Jeffrey
32714af056
escape lang class.
2014-01-10 01:07:45 -06:00
Christopher Jeffrey
96f1f35628
do not tokenize emails as html. fixes #329 again.
2014-01-10 01:07:45 -06:00
Christopher Jeffrey
0e1ac14bc5
do not tokenize emails as html. fixes #329 .
2014-01-10 01:07:45 -06:00
Christopher Jeffrey
b9b941ebea
Revert "see #302 . remove all obsolete features. keep things easy to revert."
...
This reverts commit f9c90b0cdb15d6a3ef087b79364b979fb8ef81bb.
Revert "Fix test cases. Since we have removed the headerPrefix option. There"
This reverts commit 509b284c7cc09232562c89a91453797ab88fd73f.
2013-12-23 08:00:35 -06:00
Christopher Jeffrey
e0489a5b8b
minor refactor. remove useless args.
2013-12-05 17:07:16 -06:00
Christopher Jeffrey
f9c90b0cdb
see #302 . remove all obsolete features. keep things easy to revert.
2013-12-04 06:25:16 -06:00
Christopher Jeffrey
bc1f59a950
enable all obsolete features.
2013-12-04 06:18:26 -06:00
Christopher Jeffrey
e9ed4aa9d7
more disabling of obsolete features.
2013-12-04 06:13:52 -06:00
Christopher Jeffrey
98d413fdbd
add heading ids once more. comment obsolete features.
2013-12-04 06:06:11 -06:00
Christopher Jeffrey
e3692c772b
temporarily reimplement highlight and langPrefix.
2013-12-04 05:57:18 -06:00
Christopher Jeffrey
22f6314c9b
remove needless assignment.
2013-12-04 05:37:37 -06:00
Christopher Jeffrey
b0941b9151
call paragraph renderer for stray text tokens.
2013-12-04 05:35:30 -06:00
Christopher Jeffrey
8e51a68125
misc style concerns.
2013-12-04 05:32:35 -06:00
Christopher Jeffrey
72b8233d29
make renderer method names more consistent with rule names.
2013-12-04 05:24:38 -06:00
Christopher Jeffrey
2636f85ab3
stop reinstantiating a renderer every call.
2013-12-04 05:16:29 -06:00
Christopher Jeffrey
d116575469
remove headerPrefix.
2013-12-04 05:12:30 -06:00
Christopher Jeffrey
76ac4da89f
reimplement async highlighting feature. whitespace.
2013-12-04 05:07:43 -06:00
Christopher Jeffrey
2d5090b1de
Merge remote-tracking branch 'lepture/feature-renderer'
...
Conflicts:
README.md
lib/marked.js
2013-12-04 04:57:30 -06:00
Hsiaoming Yang
5fa0a3fb90
Fix table align. Marked use style text-align instead of the align
...
attribute.
2013-12-04 14:12:27 +08:00
Hsiaoming Yang
73f5e0afbe
Add renderer feature. This is a updated version of #129 .
...
At #129 , it only contains block level renderers. This patch contains
both block level and span level renderers.
Since renderer feature can do many things, I removed highlight option
and headerPrefix option.
https://github.com/chjj/marked/pull/129
2013-12-04 14:05:57 +08:00
Christopher Jeffrey
2a0b794c2d
fix header renderer.
2013-12-03 23:12:57 -06:00
Christopher Jeffrey
7eed150966
Merge remote-tracking branch 'lepture/renderer'
2013-12-03 23:09:03 -06:00
Christopher Jeffrey
ab84e8c605
add headerPrefix option. fixes #272 . misc readme fixes.
2013-11-02 18:26:20 -05:00
Christopher Jeffrey
84a9be252d
minor.
2013-08-24 19:10:18 -05:00
Christopher Jeffrey
aba62d01d6
style: do not violate 80 col limit. no double quotes.
2013-08-08 11:29:26 -05:00
Christopher Jeffrey
f74978c3cd
another charAt. minor space consistency changes.
2013-08-08 10:03:52 -05:00
Christopher Jeffrey
ab2b953ea9
use charAt. fixes #192 .
2013-08-08 04:25:12 -05:00
Christopher Jeffrey
d53f20690f
fix nested links+img.
2013-08-07 10:42:55 -05:00
Christopher Jeffrey
37698ee7e0
list-like lines = lists in gfm. fixes #120 .
2013-08-07 08:52:01 -05:00
John Long
09e83d52ba
Switch from th/td attribute 'align' to style attribute 'text-align' for aligning
2013-08-06 14:51:33 -05:00
Christopher Jeffrey
031b897619
rewrite smartypants to match style.
2013-08-04 07:07:49 -05:00
Christopher Jeffrey
75dff71cb1
remove all non-word characters from heading id's. see #181 .
2013-08-04 07:04:51 -05:00
Christopher Jeffrey
3b2d4bdef6
Merge pull request #181 from jasonkarns/heading-ids
...
Generate Heading IDs
2013-08-04 04:45:23 -07:00
Jason Karns
a0f13ed00e
Generate heading IDs in HTML output.
...
Uses the heading text itself as the ID for the H*. The only
transformation made is to replace whitespace with '-' (hyphen). This
conforms to the HTML5 spec wherein ID attributes can contain any
non-whitespace character. (The previous HTML4 restrictions on ID
attribute values have been relaxed.)
This feature is limited in scope to strictly generating heading IDs.
A future enhancement would be a simple way of letting the author specify
the ID attribute. Perhaps:
# Some: Crazy Header {#custom_id}
to generate: <h1 id="custom_id">Some: Crazy Header</h1>
2013-08-02 17:48:30 -04:00
Christopher Jeffrey
3d64a85734
fix new lheading rule (2 chars) for markdown guide test.
2013-08-02 13:16:30 -05:00
Christopher Jeffrey
8ba8a6fdb0
update tests in other directories.
2013-08-02 13:12:33 -05:00
Christopher Jeffrey
f1851a18c8
minor async refactor.
2013-08-02 12:16:10 -05:00
Christopher Jeffrey
b16061ba2f
Merge pull request #155 from minrk/no-escape-style
...
do not escape style elements
2013-08-02 10:04:16 -07:00
Christopher Jeffrey
321490b344
Merge pull request #174 from minrk/allow-space
...
allow spaces in inline URLs
2013-08-02 10:00:55 -07:00
Christopher Jeffrey
950b4ed0e7
Merge pull request #195 from mkozhukh/master
...
marked can't be called with two parameters
2013-08-02 09:46:22 -07:00
Christopher Jeffrey
be0c32369a
Merge pull request #178 from tasuk/improve-smartypants
...
Improve smartypants support
2013-08-02 09:42:18 -07:00
insanehong
1a0ad5782d
modify lheading converting for support standard markdown syntax
2013-08-02 13:10:57 +09:00
Maksim Kozhukh
9da7b230c7
[fix] marked can't run without options parameter
2013-07-15 10:49:44 +03:00
Vit Brunner
e7e9c07d6b
Improve smartypants support
...
Taken from http://gist.github.com/drdrang/705071
Basically, if a ' or a " is preceded by the beginning of line, dash,
slash, parentheses, brackets, quotes, or whitespace, it's an opening
one. Otherwise it's a closing one.
2013-06-18 22:35:56 +01:00
MinRK
bf6b74bdc2
allow spaces in URLs
2013-06-17 16:23:38 -04:00