Estevão Soares dos Santos
491ec7210b
add image to event system
2022-04-02 21:50:38 +01:00
Estevão Soares dos Santos
a5f0da465b
add headings to new events
2022-04-01 15:55:47 +01:00
Estevão Soares dos Santos
997adada9d
Merge branch 'develop' into event_refactor
...
# Conflicts:
# .eslintrc.json
# docs/event_system.md
# test/unit/showdown.Converter.js
2022-03-31 05:00:21 +01:00
Estevao Soares dos Santos
84112c1f14
refactor: blockquotes, code blocks and links refactored
2022-03-31 02:00:56 +01:00
Swain
0d3ca4da5a
fix(metadata): allow whitespaces after closing marks
...
Co-authored-by: Estevão Soares dos Santos <estevao.santos@gmail.com>
2022-03-25 20:55:19 +00:00
Estevao Soares dos Santos
8cecdf0382
fix(lists): codeblocks inside lists are now correctly parsed
...
Closes #494
2022-02-25 01:06:09 +00:00
Estevao Soares dos Santos
5e0ed809db
feat(moreStyling): add some useful classes for css styling
...
Currently, only adds the class `task-list-item-complete` to completed tasks items in GFM tasklists.
But in the future, each time a css class is deemed to be necessary, should be added under this umbrella
option.
Closes #540
2022-02-24 01:57:08 +00:00
Estevao Soares dos Santos
67114255ad
fix(gfmCodeBlocks): allow the info string in gfmCodeBlocks to contain spaces
...
The line with the opening code fence may optionally contain some text following the code fence (the info string); this is trimmed of leading and trailing whitespace and can contain multiple words (but not newlines).
Closes #856
2022-02-24 01:22:11 +00:00
SyntaxRules
d54a6101b9
test(anchor): check other unicode characters
2022-02-07 11:19:44 -07:00
SyntaxRules
17837832b4
test(anchor): no protocol links are still treated as links
...
Closes https://github.com/showdownjs/showdown/issues/755
2022-02-07 11:07:11 -07:00
SyntaxRules
def6f0b453
test(anchor): fragments work as intended
...
Closes https://github.com/showdownjs/showdown/issues/845
2022-02-07 10:57:27 -07:00
SyntaxRules
838c5dbecc
test(anchor): check that reserved keywords and object properties are usable in links
2022-02-07 10:29:59 -07:00
Vladimir Vuksanovic
ac1047815f
fix(lists): Fix tasklists to comply with GFM
...
GFM requires a whitespace between brackets.
Closes #655
2021-11-14 13:37:38 -07:00
Devyn S
75ac5c9b6e
Merge pull request #702 from systemsthinkinginstitute/fix-upstream-reference-link-impostors
...
fix(makeHtml): allow using of squadron brackets in non-link locations
2021-11-14 13:30:06 -07:00
Marco Montalbano
8e2b339fe2
fix(helpers): update github flavored emoji to the latest ( #837 )
2021-11-14 13:23:03 -07:00
Thomas P
5544e4d995
fix(helpers): update octocat emoji image location; add tests
2021-11-14 13:17:19 -07:00
Devyn S
d5cc678941
Merge pull request #875 from showdownjs/develop
...
Develop
2021-11-12 10:05:38 -07:00
Devyn S
6efd75cb83
Merge pull request #731 from VladimirV99/ellipsis
...
feature(ellipsis): Add option to disable ellipsis
2021-11-12 09:58:50 -07:00
Devyn S
45fcc8435b
Merge pull request #698 from systemsthinkinginstitute/fix-space-between-inline-elements
...
Fix space between inline elements
2021-11-12 09:54:35 -07:00
Devyn S
965789589e
Merge pull request #788 from henrahmagix/include-html51-details-in-block-elements
...
Include HTML5.1 <details> in known block tags
2021-11-10 13:45:13 -07:00
Sam Harrison
e3a5b5928f
feat(relativePathBaseUrl): Add support for prepending a base URL
...
This feature enables support for prepending a base URL to relative paths in
links and images when converting Markdown to HTML.
Closes #536
2021-11-09 23:34:42 -07:00
Henry Blyth
775f2abe97
Include HTML5.1 <details> in known block tags
...
Fix #787
2020-04-13 22:55:14 +01:00
Jammerware
caab5bb7bc
fix: Add rel="noopener noreferrer" to links when openLinksInNewWindow is on
...
Add rel="noreferrer" to links when openLinksInNewWindow is on. Also add noopener when openLinksInNewWindow is on.
Closes #670
2019-11-02 18:58:07 +00:00
Vladimir Vuksanovic
5d494c8202
feature(ellipsis): Add option to disable ellipsis
...
Add ability to disable ellipsis parser.
This is needed for some use cases. See #634
Defaults to true to keep backwards compatibility.
2019-10-04 16:45:27 +02:00
David Chester
260d889427
fix reference link impostors
2019-05-25 18:01:56 +00:00
David Chester
f0d37ad3c5
rename test files to match convention
2019-05-25 17:13:24 +00:00
David Chester
001b1881d0
preserve spaces between inline elements
2019-05-14 13:15:15 +00:00
Estevao Soares dos Santos
6ee6d8c9d9
rebuild
2018-10-24 03:27:16 +01:00
Vladimir Vuksanovic
4378abb4fa
fix(italicsAndBold): Make italicsAndBold lazy ( #608 )
...
fix italicsAndBold if literalMidwordUnderscores option is enabled
it should end at the nearest closing underscores, not the furthest
Closes #544
2018-10-24 03:23:28 +01:00
Vladimir Vuksanovic
81edc70da7
fix(underline): Make underline lazy
...
fix underline if literalMidwordUnderscores option is enabled
it should end at the nearest closing underscores, not the furthest
2018-10-21 15:20:39 +02:00
Estevao Soares dos Santos
d3ebff7ef0
fix(links): a number of issues with links subparser
...
This is a major refactor of the links subparser, previously known as anchors subparser.
Closes #355 , #534
BREAKING CHANGE: `excludeTrailingPunctuationFromURLs` option was removed. This is now the default behavior
2018-09-25 04:04:59 +01:00
Estevao Soares dos Santos
f46479b4ee
chore: update readme and add TASKS.TODO.md
2018-09-16 03:45:07 +01:00
Estevao Soares dos Santos
6259f37bd6
fix(gfm-codeblocks): leading space no longer breaks gfm codeblocks
...
Now GFM Code Blocks can have up to 3 spaces before the backticks
Closes #523
2018-09-15 14:58:50 +01:00
Estevao Soares dos Santos
26abc7a795
fix(headings): inconsistent behavior in lists
...
In text, headings only require a single linebreak to be treated as such.
However, in lists, they would require a double linebreak.
Now, the behavior in lists and text is consistent, requiring only a single
linebreak.
Closes #495
2018-09-15 14:45:48 +01:00
Estevao Soares dos Santos
a4be301331
fix: allow escaping of colons
...
Previously, you couldn't escape colons (as they were semi-magic markdown characters).
Colons (:) can now be backslash escaped.
2018-09-14 21:34:48 +01:00
Estevao Soares dos Santos
2ba00751cc
fix(mentions): allow for usernames with dot, underscore and dash
...
Closes #574
2018-09-14 17:03:07 +01:00
Estevao Soares dos Santos
b0d475fc08
fix(images): fix js error when using image references
...
In some circumstances, on a reference style image, the last capturing
group is ignored, which causes the fucntion argument to return the number
of matches instead of a string (or undefined).
Checking if the title parameter is a string ensures that the title
parameter is actually something that was caught by the regex and not some
metadata.
Closes #585
2018-09-14 15:49:24 +01:00
Estevao Soares dos Santos
63763b136f
fix(images): fix error when using image references
...
In some circumstances, on a reference style image, the last capturing
group is ignored, which causes the fucntion argument to return the number
of matches instead of a string (or undefined).
Checking if the title parameter is a string ensures that the title
parameter is actually something that was caught by the regex and not some
metadata.
Closes #585
2018-09-14 15:40:18 +01:00
Estevao Soares dos Santos
0c6b5bdc4b
Merge branch 'develop' of https://github.com/showdownjs/showdown into develop
...
# Conflicts:
# dist/showdown.js
# dist/showdown.js.map
# dist/showdown.min.js
# dist/showdown.min.js.map
2018-09-14 14:11:08 +01:00
Estevao Soares dos Santos
05ef5c55dc
refactor(event dispatcher): make event dispatcher return an object instead of text
2018-09-14 14:10:15 +01:00
Lee Moody
1f0242c6ea
fix(gfm-codeblock): add support for spaces before language declaration
...
One or more spaces before the language declaration of a code block is supported by Github.
E.g.
``` html
<div>HTML!</div>
```
``` html
<div>HTML!</div>
```
```html
<div>HTML!</div>
```
Closes #569
2018-08-08 01:25:32 +01:00
maxwellito
55f22de0a0
fix: compress showdown emoji
...
* fix showdown emoji compression
* test: fix functional test
2018-05-07 19:27:19 +01:00
Estevao Soares dos Santos
94aa3e53ca
test: add tests for reverse converter
2017-12-23 12:35:31 +00:00