51 Commits

Author SHA1 Message Date
Spencer Whitehead
1f579f7628
fix: Remove unused plus typescript tightening (#3527)
* chore: remove unused build file

* chore: remove unused package

* chore: remove unused function

* chore: remove unnecessary | undefineds

* core: replace unnecessary &&s with optional chaining

* chore: use .at(-x) instead of .length - x property access

gives stricter TS typing, is more concise

* chore: tighten TS types

* chore: sort tokens alphabetically

* fix: typeof plus !== null check

* chore: type test for .parse, .use

* fix: if check
2024-11-17 21:53:28 -07:00
Tony Brix
9b02e477c6
chore: consolidate eslint rules (#3368) 2024-07-14 18:54:46 -06:00
Tony Brix
62b941d417
chore: update eslint to v9 (#3367)
* chore: update eslint to v9

* remove compat

* pin typescript
2024-07-14 00:38:17 -06:00
Tony Brix
7d95a91093
fix: Clean up files in repo (#2963)
BREAKING CHANGE:

- remove built files from git repo.
  - If you need to use the latest version of marked on the web you can use a cdn to get marked.min.js from npm:
  - `https://cdn.jsdelivr.net/npm/marked/marked.min.js`
2023-09-09 17:51:42 -06:00
Tony Brix
89ddeec2a0
docs: fix older versions in demo (#2934) 2023-08-11 21:46:54 -06:00
Tony Brix
71cc7b9d8b
docs: update docs (#2928)
Co-authored-by: Steven <steven@ceriously.com>
2023-08-10 21:25:40 -06:00
dependabot[bot]
7d111d8fba
chore(deps-dev): Bump eslint-config-standard from 17.0.0 to 17.1.0 (#2837)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tony Brix <tony@brix.ninja>
2023-06-06 00:39:57 -05:00
Florian Dreier
72ee2d620a
fix: Replace custom repeatString function with repeat() (#2820)
chore: Replace custom repeatString functions with ECMAScript String.repeat()
2023-05-30 17:19:19 -05:00
Ben McCann
4afb228d95
fix: Convert to ESM (#2227)
BREAKING CHANGE:

- Default export removed. Use `import { marked } from 'marked'` or `const { marked } = require('marked')` instead.
- `/lib/marked.js` removed. Use `/marked.min.js` in script tag instead.
- When using marked in a script tag use `marked.parse(...)` instead of `marked(...)`
2021-11-02 09:32:17 -05:00
Tony Brix
e8ddad0971
docs: fix demo initial options not loaded (#1983) 2021-03-25 08:51:34 -05:00
Tony Brix
c50e39e58a
chore(docs): Codeql fixes (#1793) 2020-11-06 08:34:31 -06:00
Tony Brix
a82d1c6077 update docs 2020-04-02 00:24:21 -05:00
Tony Brix
46e3b17dde update eslint config to fix new standards 2019-08-27 13:22:54 -05:00
Tony Brix
c0db64bcf8 lint 2019-07-02 16:28:32 -05:00
Tony Brix
1a1dd43ab1 space-before-function-paren never 2019-05-03 20:59:44 -05:00
Tony Brix
bc835ae99e simplify eslint config 2019-05-03 20:59:44 -05:00
Tony Brix
d9f22d2726 separate eslint config 2019-05-03 20:59:43 -05:00
Tony Brix
9d2c93e500 fix marked version 2019-04-03 16:47:30 -05:00
Tony Brix
f88029a19b use latest commit hash 2019-04-01 09:08:42 -05:00
Tony Brix
d4eb3f81b6 use @master 2019-03-29 13:02:04 -05:00
Tony Brix
14da71c5cb clean up more code 2019-02-14 11:52:14 -06:00
Tony Brix
40d65e5582 add loading screen 2019-02-14 11:25:01 -06:00
Tony Brix
5e2d77378c fix startup 2019-02-14 11:18:47 -06:00
Tony Brix
f8d2413a08 clean up code 2019-02-14 11:15:42 -06:00
Tony Brix
a6f7609438 add pr 2019-02-14 10:43:03 -06:00
Tony Brix
a00ae47f3a use worker in ie11 2019-02-14 09:19:14 -06:00
Tony Brix
0f4ac747a2 add commit input 2019-02-14 00:08:33 -06:00
Tony Brix
3681bcff33 allow version to be a github commit 2019-02-13 18:24:44 -06:00
Tony Brix
9e2c72f64a fix ie11 2019-02-13 18:04:46 -06:00
Tony Brix
ab42f86430 add response time 2019-02-13 14:18:15 -06:00
Tony Brix
acf9c82388 use worker to prevent dos 2019-02-13 12:16:39 -06:00
Tony Brix
3fe557209a add versions dropdown 2019-02-08 14:11:09 -06:00
Ashton Hunter
0623282915 Add selection options to choose version in demo 2019-02-08 08:28:32 -05:00
Steven
2aeae6dd37
Merge pull request #1360 from aprotim/demo_options_parse_feedback
Demo Page: Give user feedback when "options" is not valid JSON.
2018-10-19 16:01:46 -04:00
aprotim
e9f57d96d9
As usual, fix my lint errors. 2018-10-18 12:17:46 -07:00
aprotim
173eb82d47
Filter complex objects out of JSON defaults. 2018-10-18 12:10:53 -07:00
aprotim
cf7fab7051
Load default options in demo
Per @styfle's suggestion, setting the options element's contents to the defaults on load.
2018-10-18 11:02:57 -07:00
Aprotim Sanyal
a95b5bcb27 Give user feedback when options is not parsing. 2018-10-18 00:56:29 -07:00
aprotim
14ab69a1e0
Fix lint, per usual. 2018-10-18 00:27:59 -07:00
Aprotim Sanyal
56c216a3fd Create input selector. 2018-10-18 00:19:48 -07:00
Aprotim Sanyal
76d23a0a11 Remove leftover debuggin statements. 2018-10-17 16:57:02 -07:00
Aprotim Sanyal
b27ea1ea0c Fix linter errors 2018-10-17 15:27:25 -07:00
Aprotim Sanyal
05a6345580 Let users add options as JSON in demo. 2018-10-17 15:11:53 -07:00
Steven
002c37434a Add missing semicolons to tests 2018-09-23 20:56:38 -04:00
Tony Brix
21f20276b0 lint 2018-06-24 02:02:11 -05:00
Tony Brix
59b1146be7 use iframe to sandbox generated html 2018-06-24 01:46:42 -05:00
Tony Brix
f66196ae5f fix when text is blank 2018-04-03 11:39:08 -05:00
Tony Brix
f9cef1f0d7 add outputType param 2018-04-03 11:21:43 -05:00
Tony Brix
3c3db6b004
use fetch 2018-03-29 13:08:48 -05:00
Tony Brix
f3cab3f75b add permalink and clear button 2018-03-28 11:24:14 -05:00