Commit Graph

906 Commits

Author SHA1 Message Date
Estevão Soares dos Santos
d24d2befa3 test(cli)!: Add test for multiple config options
Note: there was a breaking change that we forgot to document. Ww write the breaking change here for it to be picked up in the future 3.0 release,
even though it was introduced in commit 3871765

BREAKING CHANGE: the CLI no longer accepts "extra options". Instead you should pass the `-c` flag. To update:

before:
```
showdown makehtml -i foo.md -o bar.html --strikethrough --emoji
```

after:
```
showdown makehtml -i foo.md -o bar.html -c strikethrough -c emoji
```

Closes #916
2022-04-21 01:17:34 +01:00
Estevão Soares dos Santos
1c81fa6475 Merge branch 'master' into develop 2022-04-21 00:43:44 +01:00
Martin Beentjes
fdf9272af6
Update browserstack.yml (#915)
Update github action `martinbeentjes/npm-get-version-action` to newest version
2022-04-20 13:32:05 +01:00
Antonio
5c6c4659ca
docs: added revised credits page 2022-04-17 15:03:05 +03:00
dependabot[bot]
019b137aa8
chore(deps): bump async from 2.6.3 to 2.6.4 (#914)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-16 20:25:28 +01:00
Estevão Soares dos Santos
947ec9bdd4 Merge branch 'develop' into feat/910-auto-linking-mention-from-html-to-markdown 2022-04-16 20:10:29 +01:00
Estevão Soares dos Santos
3c2e25a3c7 Merge branch 'develop' into feat/910-auto-linking-mention-from-html-to-markdown
# Conflicts:
#	src/subParsers/makemarkdown/table.js
2022-04-16 20:09:50 +01:00
Estevão Soares dos Santos
3a616c5bf6 feat(makeMarkdown.ghMentions): add support for ghMentions in makeMarkdown
Related to #910
2022-04-16 20:06:05 +01:00
Antonio
1cf1908935 docs: added page describing supported markdown syntax 2022-04-09 23:20:41 +03:00
Antonio
141c23793b docs: added a list of known extensions 2022-04-09 19:01:05 +03:00
Antonio
ef726d79a4 docs: added tutorial on how to use lang and output extensions together 2022-04-09 18:28:28 +03:00
Antonio
fae04b6549 docs: added tutuorial on how to create markdown editor 2022-04-09 16:22:34 +03:00
Antonio
c4eef0b8c1 docs: added section about cli extra options 2022-04-09 13:39:50 +03:00
Antonio
f3d73f5b54 docs: added tutorial on how to add classes to html elements 2022-04-09 02:06:07 +03:00
VoltanFr
4a887331c9
docs: added repo build guidelines in README.md (#909)
Helps developer start discovering the repo for coding.
2022-04-05 23:31:33 +01:00
Estevão Soares dos Santos
16cac70aee fix: add polyfill method for array.isArray
Closes #497
2022-04-03 09:36:37 +01:00
Estevão Soares dos Santos
fc01abd708 chore: try fixing github broswerstack action
these lines are for testing purposes

test test test
2022-03-31 08:22:18 +01:00
root
565bbdc94a chore: try to fix browserstack name 2022-03-31 08:03:09 +01:00
Estevão Soares dos Santos
a9ee330ac2 Merge branch 'develop' of github.com:showdownjs/showdown into develop 2022-03-31 02:44:42 +01:00
Estevão Soares dos Santos
e098ec684c test: fix name of browserstack name being too long 2022-03-31 02:44:15 +01:00
Antonio
010f94fd04 docs: added create extension page 2022-03-31 01:29:59 +03:00
Antonio
d11e5cf6e0 docs: added extensions overview page 2022-03-30 23:35:17 +03:00
Antonio
bdddfb9131 docs: added page describing markdown's xss vulnerability 2022-03-30 21:29:13 +03:00
Antonio
568445fa43 docs: added integrations 2022-03-30 20:12:35 +03:00
Antonio
6e6dde5c55 docs: added page describing cli tool 2022-03-30 02:13:37 +03:00
Antonio
8d9b8f2f92 docs: added page about flavors 2022-03-30 01:27:06 +03:00
Antonio
a1bb3e0a9b docs: sort showdown options alphabetically 2022-03-28 22:18:38 +03:00
Antonio
24016bfd0b docs: added page describing options supported by showdown 2022-03-28 21:54:41 +03:00
Antonio
5efc75d894 Merge branch 'develop' of github.com:showdownjs/showdown into develop 2022-03-28 21:52:54 +03:00
Antonio
b3dac51d9e
test: removed redundant path-ignore (#906) 2022-03-28 16:28:56 +01:00
Antonio
8a959a6ddd docs: added showdown configuration document 2022-03-28 01:59:41 +03:00
Estevão Soares dos Santos
29538dda96 test: add commit msg as browserstack test name
This lines are just for testing purposes to see if everything in the msg is grabbed or only the first part of the message.
2022-03-27 22:33:06 +01:00
Estevão Soares dos Santos
2715e76471 test: fix browserstack workflow(build-name) 2022-03-27 04:16:12 +01:00
Estevão Soares dos Santos
eb4b78ac66 test: fix browserstack workflow(build-name) 2022-03-27 04:13:12 +01:00
Estevão Soares dos Santos
cd83919bff test: fix browserstack workflow(build-name) 2022-03-27 04:02:21 +01:00
Estevão Soares dos Santos
fab6987e56 test: fix browserstack workflow 2022-03-27 03:59:45 +01:00
Estevão Soares dos Santos
f37113adca test: split build by commits in browserstack 2022-03-27 03:54:45 +01:00
Estevão Soares dos Santos
6a86880bbe chore: fix mix github actions problems 2022-03-27 03:33:01 +01:00
Estevão Soares dos Santos
788e329d6e test: fix cli test to work with named versions 2022-03-27 02:17:48 +01:00
Estevão Soares dos Santos
17bcd56eae test: add project name and build to browserstack 2022-03-27 00:40:11 +00:00
Estevão Soares dos Santos
0839b3a556 bump version to 3.0.0-alpha 2022-03-27 00:35:47 +00:00
Estevão Soares dos Santos
c45d66d974 try: fix github browserstack action 2022-03-27 00:25:36 +00:00
Estevão Soares dos Santos
f85d82fb23 try: fix github browserstack action 2022-03-27 00:17:58 +00:00
Estevão Soares dos Santos
691487f8c0 try: fix github browserstack action 2022-03-27 00:15:12 +00:00
Estevão Soares dos Santos
b0bb58d954 try: fix github browserstack action 2022-03-27 00:13:16 +00:00
Estevão Soares dos Santos
1f15a18adb try: fix browserstack github action 2022-03-27 00:08:22 +00:00
Estevão Soares dos Santos
9a3e714b2c test: implement karma and browserstack tests 2022-03-27 00:05:30 +00:00
Estevão Soares dos Santos
db571fbaac fix: tables parse correctly with new version of jsdom 2022-03-26 04:34:50 +00:00
Chris
5fc843e175
feat(makemarkdown.table): support non-strict tables
* feat(makemarkdown.table): support non-strict tables

change to support non strict html tables.
currently html tables require both 'thead' and 'tbody' to be set.
since there are many tables out there that dont meet these requirements,
i added support for most common tables. all of the following tables will now
work (the last one, is the only version that is currently working):
<table><tr><td>t 0 - missing thead/tbody</td></tr></table>
<table><tr><td>t 1 - missing thead/tbody</td></tr><tr><td>t 1 body</td></tr></table>
<table><thead><tr><th>t 2 - thead only</th></tr></thead></table>
<table><thead><tr><td>t 3 - thead with td</td></tr></thead></table>
<table><tbody><tr><td>t 4 - tbody only</td></tr></tbody></table>
<table><thead><tr><th>t 5 - both thead and tbody</th></tr></thead><tbody><tr><td>t 5</td></tr></tbody></table>
i thought this feature should be made optional in case you only want
to support fully compliant tables. but then i realized, that the options
are only passed to the markdown subparsers, not the html ones.
and since this does not break anything (all tests pass), its ok, i guess...

Closes #687

* refactor: code refactor and added tests

Co-authored-by: Estevão Soares dos Santos <estevao.santos@gmail.com>
2022-03-26 04:18:05 +00:00
chandi
949c2bcf86
fix(email): now email address obfuscation always returns the same output
* feat(helpers): determined results for email address obfuscation

email address is used as the seed, so it should always provide the same result for a given mail.
utilizes a random number generator shown here: https://stackoverflow.com/questions/521295/seeding-the-random-number-generator-in-javascript/47593316#47593316

* feat(helpers): added Math.imul() support for older browsers

Co-authored-by: Estevão Soares dos Santos <estevao.santos@gmail.com>
2022-03-26 00:31:41 +00:00