Estevão Soares dos Santos
6492e74c5b
docs(showdown.options): fix jsdocs for methods setOption, getOption and getOptions
2015-05-27 01:43:08 +01:00
Estevão Soares dos Santos
db6f79b08d
feat(Converter.options): add getOption(), setOption() and getOptions() to Converter object
...
Provides a way to get and set options directly in a Converter object
2015-05-27 01:37:01 +01:00
Estevão Soares dos Santos
e6f40e190c
fix(options.omitExtraWLInCodeBlocks): fix for options.omitExtraWLInCodeBlocks only applying in gitHub flavoured code blocks
2015-05-26 19:57:36 +01:00
Estevão Soares dos Santos
ddd6011df2
fix(showdown): fix for options merging into globalOptions
...
Passing an option to a specific converter affects other instances of the converter since options are merged into showdown's global options.
This commit fixes that.
Closes #153
2015-05-26 19:46:07 +01:00
Estevão Soares dos Santos
3ecf9c4f8e
chore(): remove angular from core package
2015-05-13 22:36:25 +01:00
Estevão Soares dos Santos
fb3e0ba3bc
fix(subParsers/hashHTMLBlocks.js): fix rendering problems with html5 block elements.
...
Some HTML5 block elements were not being properly ignored. This caused problems in rendering markdown as showdown would add additional <br /> to some block elements.
This commit should fix this issue.
Closes #90 , closes #140 , closes #147
2015-04-23 21:51:32 +01:00
Estevão Soares dos Santos
95ed7c682e
fix(extensions): support for old extension loading mechanism
2015-04-23 00:15:54 +01:00
Estevão Soares dos Santos
a38c76d236
fix(showdown.js): fix showdown extension loader
2015-04-22 16:58:07 +01:00
Estevão Soares dos Santos
d996b4438d
partial(showdown.js): enabled output modifiers
2015-04-22 14:51:57 +01:00
Hannah Wolfe
36daa99339
Add missing block elements
...
fixes #90
2015-03-16 16:27:16 +00:00
Estevão Soares dos Santos
0fd10cb56a
Added new extension registering method
2015-03-01 18:15:32 +00:00
Estevão Soares dos Santos
8ee87ead9f
doc(showdown.js): add source documentation for showdown's api
2015-01-19 16:28:14 +00:00
Estevão Soares dos Santos
18ba4e756f
fix(helpers): fix wrong function call 'escapeCharacters' due to old strayed code
2015-01-19 15:42:20 +00:00
Estevão Soares dos Santos
0da9626408
chore(): code fix to pass jscs linter
2015-01-19 14:57:43 +00:00
Estevão Soares dos Santos
79829dbbf1
chore(): code style fix and tests fix due to code style changes
2015-01-19 12:04:22 +00:00
Estevão Soares dos Santos
8b000b134a
chore(all): code style change
2015-01-19 11:37:21 +00:00
Estevão Soares dos Santos
c367a4b9a1
feat(uniqueHeaderId): add unique id prefix and suffix to headers
...
If two headers have similar texts, the generated id could be equal. In order to prevent id clash:
- A unique suffix is added if a header id already exists
- Option to add a prefix to header id
- Update of correspondent tests
- (credits to nicovalencia)
Closes #81 , closes #82
2015-01-18 02:12:32 +00:00
Estevão Soares dos Santos
c9de4b6b1f
Revert "feat(allowBlockIndents): Indented inline block elements can be parsed as markdown"
...
This reverts commit f6326b84e4
.
2015-01-17 00:13:12 +00:00
Estevão Soares dos Santos
f6326b84e4
feat(allowBlockIndents): Indented inline block elements can be parsed as markdown
...
When the text is pulled from indented HTML elements, ex:
```
<body>
<div>
## Content to be converted
</div>
</body>
```
it no longer becomes wrapped in code/pre tags. A new option is also available (allowBlockIndents) that when set to false, reverts to the previous behavior
2015-01-16 23:39:20 +00:00
Estevão Soares dos Santos
eae5f0e01f
Major code refactoring
2015-01-15 21:21:33 +00:00
Alessandro Vermeulen
3dbc6ffcfb
Added fix to prevent table rendering to be broken by alignment character ":".
2015-01-09 21:32:05 +01:00
Estevão Soares dos Santos
548becfd58
renamed showdown to showdown legacy
2015-01-06 16:38:22 +00:00
Estevão Soares dos Santos
e4d96c4fd8
Bugfix: Fixes #128 Fixes issue where compressed/concatenated file breaks if angular is not present.
2015-01-06 16:06:00 +00:00
Estevão Soares dos Santos
24716d3520
Fixed undefined typo
2015-01-04 21:53:40 +00:00
Estevão Soares dos Santos
3cad130b9b
Merge branch 'feature/Angular_Integration' into develop
2015-01-04 21:36:22 +00:00
Estevão Soares dos Santos
c210613812
Merge branch 'hotfix/double_tables' into develop
2014-11-14 18:19:48 +00:00
Estevão Soares dos Santos
71b572a077
Code style fix
2014-11-14 18:16:25 +00:00
Estevão Soares dos Santos
b3c056ea65
Fixes #93
2014-11-11 22:18:35 +00:00
Estevão Soares dos Santos
930302463a
SetOption and LoadExtension now return the object itself
2014-11-11 22:12:45 +00:00
Estevão Soares dos Santos
a1c0d8f7dd
Initial commit of AngularJS Integration Module
2014-11-05 03:10:02 +00:00
Pascal Deschenes
8c5ae8ef8f
add re-entering support for table content
2012-11-01 16:16:34 -04:00
Pascal Deschenes
0440ef313e
fix bug with this scope handling and extension converter argument
...
* `this` scope is captured as `self`, so that it can be properly passed to `Showdown.forEach(plugin(self)` otherwise,
extension plugin will end up with converter pointing to global scope.
* because Showdown is not using proper prototype chain (i.e. references to yet to be defined functions), I had to
move the extension handling below makeHtml so that it is defined and available within the plugin itself
2012-11-01 16:12:32 -04:00
Pascal Deschenes
dc28410a3b
Merge branch 'master' into feature-table-extension
...
Conflicts:
README.md
src/showdown.js
2012-11-01 14:21:39 -04:00
Pascal Deschenes
ddec23684f
fix prettify naming (client side error)
2012-11-01 14:07:53 -04:00
Corey Innis
7c28d3752c
[ #36 ] iterate with Showdown.forEach
...
* browser support: [].forEach is not always available.
* also using Showdown.forEach in the test suite, to set the pattern.
2012-11-01 00:50:03 -07:00
Corey Innis
d6d7f807ea
[ #14 ] add initial github-flavored extension
...
simply handles strike-through for now.
2012-10-31 03:38:46 -07:00
Corey Innis
b8c979653e
post-merge (abackstrom) remove extraneous var declaration.
2012-10-31 01:18:06 -07:00
Corey Innis
8a8820634e
Merge remote-tracking branch 'abackstrom/striplinkdefinitions-endstring'
2012-10-31 01:16:05 -07:00
Corey Innis
9075cdc080
Merge remote-tracking branch 'unwiredben/master'
2012-10-31 00:30:23 -07:00
Pascal Deschenes
caa98a8dde
bug fixes:
...
+ fix bug with forEach extensions within client-side handling (browser)
+ update README to specify extension as array for client-side usage (same as server)
2012-10-30 16:55:18 -04:00
Pascal Deschenes
aa76deec74
add basic table support
2012-10-30 14:39:34 -04:00
Adam Backstrom
6645ca173b
Apply sentinel fixes to _StripLinkDefinitions
2012-10-19 11:55:49 -04:00
unwiredben
9b297fa877
Remove unnecessary "match anything" test that caused excessive run time on some mixed content
...
Update HTML5 structural tags test to also verify correctness this regexp and the previous one.
Signed-off-by: unwiredben <combee@techwood.org>
2012-09-08 14:17:52 -05:00
Titus
0e4c052373
Merge branch 'master' into syntax-extensions
2012-08-09 20:19:17 -06:00
Pavel Lang
8d5a284272
Code cleanup
...
* Arrays used as hashes replaced by object initializer `{}` and Array
constructor calls replaced with array literal `[]`
* `function char2hex(ch)` used in email obfuscation replaced with inline
call `ch.charCodeAt(0).toString(16)`
* **For clarity I edited only src/showdown.js script. There are also
copy of file in `example` directory and minified version in
`compressed` directory.**
2012-08-09 20:15:55 -06:00
Titus
e6526026ec
Fixed #26 -- Urls which contained matched parenthesis are now supported
2012-08-09 20:06:58 -06:00
Titus
35abe36946
Merge branch 'syntax-extensions' of github.com:tstone/showdown into syntax-extensions
2012-08-09 19:51:43 -06:00
Joe Martin
32db258511
Added AMD friendly piece of code.
2012-08-09 19:51:13 -06:00
Joe Martin
2d80b3af04
Added AMD friendly piece of code.
2012-08-09 19:49:54 -06:00
Pavel Lang
a67421ba2a
Extension autoloading fix
2012-08-10 02:35:20 +02:00