Commit Graph

908 Commits

Author SHA1 Message Date
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
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
CommanderRoot
3eff10bbbf
refactor: replace deprecated String.prototype.substr() (#902)
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-03-25 20:18:41 +00:00
Antonio
a5f3add2b6
Merge pull request #898 from showdownjs/updated-event-type-for-external-event
docs: updated event_type for the repository_dispatch event
2022-03-25 21:03:02 +02:00
Estevão Soares dos Santos
a946f557a2
Merge pull request #900 from showdownjs/docs-quickstart-guide
docs: refactored installation to become quickstart guide
2022-03-25 18:41:05 +00:00
Antonio
314808aa3e docs: refactored installation to become quickstart guide 2022-03-25 20:21:21 +02:00
Antonio
53aa1cc79f
Merge pull request #899 from showdownjs/proper-colors-for-docs
docs: added 'corporate' colors for docs
2022-03-25 20:15:47 +02:00
Antonio
223017e218 docs: added 'corporate' colors for docs 2022-03-25 19:23:08 +02:00
Antonio
7788ba2bc0 docs: updated event_type for the repository_dispatch event 2022-03-22 00:10:34 +02:00
Estevao Soares dos Santos
d02fe7caf9 Merge branch 'develop' 2022-03-20 19:06:06 +00:00
Estevão Soares dos Santos
b8fb79d85f
docs: minor corrections to README.md 2022-03-20 19:05:11 +00:00
Estevão Soares dos Santos
bad26cd2ed
Merge pull request #897 from showdownjs/docs/docs-flow-triggers
docs: updated triggers for the documentation flow
2022-03-20 19:01:02 +00:00
Antonio
9ddb19479c docs: updated triggers for the documentation flow 2022-03-20 20:39:08 +02:00
Estevão Soares dos Santos
6397c203f6
docs(events): fix typo in properties 2022-03-20 15:34:16 +00:00
Anthony DePasquale
95eb3b4168
Update README.md 2022-03-20 16:26:13 +01:00
Estevao Soares dos Santos
4f0f76ca76 Merge branch 'develop' 2022-03-20 15:04:15 +00:00
Estevão Soares dos Santos
925bbceab4
docs: added installation guide, compatibility and donation pages
Merge pull request #895 from showdownjs/decoupling-readme-stage-1
2022-03-20 14:48:48 +00:00
Antonio
15b159c846 docs: added installation guide, compatibility and donation pages 2022-03-20 16:37:51 +02:00
Estevão Soares dos Santos
f2f30349d6
docs(project): add initial setup for docs publishing
Merge pull request #892 from showdownjs/documentation-initial-setup
2022-03-15 20:37:45 +00:00
Antonio
490f4eb562 docs: added ci pipeline to build and deploy docs 2022-03-15 20:28:53 +02:00
Estevao Soares dos Santos
df76f984a3 chore: add test for repeat helper
Several test cleanups and minor test fixes
2022-03-10 12:56:34 +00:00
Estevao Soares dos Santos
5f5304ccaa Merge branch 'develop' of https://github.com/showdownjs/showdown into develop 2022-03-10 11:24:48 +00:00
Estevão Soares dos Santos
849ed40b70
fix(polyfill) String.prototype.repeat
Merge pull request #629 from dennisss/fix2
2022-03-10 11:24:20 +00:00
Estevao Soares dos Santos
169cd1ed89 clean: clean stray console.log 2022-03-10 00:21:25 +00:00
Estevao Soares dos Santos
14dbda2dcf chore: build cli 2022-03-10 00:19:41 +00:00
Estevao Soares dos Santos
1f4a9885cc chore: minor fix in tests 2022-03-10 00:17:27 +00:00
Estevao Soares dos Santos
7acd65e498 fix(cli): remove checking stdin size
Also fix some errors related to testing and inconsistent behavior between linux and windows
2022-03-10 00:09:42 +00:00
Estevao Soares dos Santos
f87cf01282 chore: fix tests for CI 2022-03-09 15:19:34 +00:00
Estevao Soares dos Santos
54a54271ec second try in fixing github actions 2022-03-09 14:47:44 +00:00
Estevao Soares dos Santos
1a3b8db8cd chore: Fix problem in github actions CI 2022-03-09 13:51:44 +00:00
Estevao Soares dos Santos
c7dd148b08 chore: remove unused dev dependencies 2022-03-07 18:04:56 +00:00
Estevao Soares dos Santos
c3411a567d fix(cli): cli now works properly
The CLI was completely rewrote. Changed dependency from yargs to
commanderjs,
which is cleaner, faster and has no dependencies.
Also added a complete testsuite for the cli.

Merged branch 'cli_refactor' into develop

Closes #893, #894
2022-03-03 12:48:23 +00:00
Estevao Soares dos Santos
bd093ab493 chore: fix jsdoc in converter.js 2022-03-01 15:30:59 +00:00
Antonio
3b2a3029b4 docs(project): add initial setup for docs publishing 2022-02-27 13:12:55 +02:00
Estevao Soares dos Santos
16ad404b85 Merge branch 'develop' 2022-02-25 01:11:13 +00:00
Estevão Soares dos Santos
3e1a815e18
fix(lists): codeblocks inside lists are now correctly parsed
Closes #494
2022-02-25 01:10:07 +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
Estevão Soares dos Santos
1615b3ea15
fix(makemarkdown.table): col text now aligns right properly 2022-02-25 00:48:14 +00:00
Estevão Soares dos Santos
b02c1dd31b
Merge pull request #889 from showdownjs/develop
Develop
2022-02-25 00:25: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
Estevao Soares dos Santos
5a84b1cdf0 Merge branch 'master' into develop 2022-02-24 00:45:04 +00:00
Estevão Soares dos Santos
85caa462de
Create codeql-analysis.yml 2022-02-24 00:40:41 +00:00
Estevao Soares dos Santos
9f0b36d95b chore: active CI in develop branch 2022-02-24 00:23:15 +00:00
cjwind
626f661e8e
fix(lists): Fix makeMarkdown tasklist (#846)
Fix makeMarkdown() with tasklist by adding input subparser.

Close #774

Co-authored-by: Estevão Soares dos Santos <estevao.santos@gmail.com>
2022-02-24 00:16:31 +00:00
Estevao Soares dos Santos
cb2e4853b7 Merge branch 'master' into develop 2022-02-24 00:06:58 +00:00
mh-cbon
1967652acf
fix(cli): read input data using stream (#358)
* cli: prevent brutal exit when the process is doing async work

* cli: read input data suing a stream to fix #353

* cli: add error return support

* cli: add error return support

* lint

Closes #358
2022-02-24 00:06:08 +00:00
Vladimir Vuksanovic
ebc730c0a0
fix(metadata): Restore dollar signs and tremas. (#730)
Closes #626

Co-authored-by: Estevão Soares dos Santos <estevao.santos@gmail.com>
2022-02-24 00:03:20 +00:00
Estevao Soares dos Santos
3fd1ea6d7f chore: try to make CI work in master 2022-02-23 23:52:58 +00:00