Commit Graph
197 Commits
Author SHA1 Message Date
Trevor Buckner eeedc5f7d4 Merge branch 'master' into preservePREColons 2024-08-22 21:53:16 -04:00
Trevor Buckner fff357d08b Make 'block-level' extension. Tweaks to pass new tests
'block-level' because it never occurs inside another block ('inline-level' always occurs inside something else); starts and stops on on its own line without anything else on the same line.
2024-08-22 21:52:40 -04:00
Trevor Buckner 645c9a122c Update cleanURL helper function to match later Marked version 2024-08-22 11:51:24 -04:00
David Bolack e957f40775 Revert previous simplification as it breaks the original purpose of this PR
Added test for inside a code block.
2024-08-20 12:17:51 -05:00
David Bolack 3985afade9 Remove need for Definition exceptios
Retool original `:` break to insert `\n\n`s between each `:` so that
the definition lists never have a chance for a mismatch.

Rename token to "hardbreak"
Add tests for hardBreaks for `:`, `::`, and `:::` which should verify it works and does not collide with definitionlists.
2024-08-20 11:46:43 -05:00
David Bolack 3a81521e6f Work around users using Definition lists as paragraph indents. 2024-08-19 19:40:55 -05:00
David Bolack a30608a8ae Promote : paragraph breaks shortcut to a token. 2024-08-19 10:36:26 -05:00
David Bolack 184f182b3a Short term fix for the colons in codeblocks issue. 2024-08-18 21:52:29 -05:00
Trevor Buckner 5894dc5a7a Merge branch 'master' into fixVarNameAsParam-#3622 2024-08-11 21:59:58 -04:00
G.Ambatte f58d52c4b6 Add comma to var math split regex 2024-08-10 07:54:50 +12:00
G.Ambatte c3e6c01ec1 Fix typo in regex 2024-08-09 15:33:28 +12:00
G.Ambatte 5bb5cdec05 Change replaceAll to use RegEx from string 2024-08-09 13:10:30 +12:00
G.Ambatte 1b71bbaefb Remove escaping from new functions 2024-08-03 10:32:39 +12:00
G.Ambatte fcd5279381 Enable built-in abs() 2024-08-03 10:32:18 +12:00
G.AmbatteandTrevor Buckner e1fe640e92 Update shared/naturalcrit/markdown.js
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
2024-08-02 07:03:27 +12:00
G.AmbatteandTrevor Buckner 6f99fe7455 Update shared/naturalcrit/markdown.js
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
2024-08-02 07:02:57 +12:00
G.Ambatte aebfcc7885 Add new var math functions 2024-07-21 00:18:06 +12:00
Trevor Buckner 0a199e750f Simplify string splitting code
String.split will return the substring before > or the whole string if no > exists.
2024-07-06 18:00:18 -04:00
G.Ambatte 9c4de58161 Limit htmlString to the first element ONLY 2024-07-06 13:22:47 +12:00
Trevor Buckner 8ee70b0928 Only split curly attributes on on first =, allow ?, = in attributes 2024-07-01 12:21:29 -04:00
Gazook89 b748a597d2 some fixes post merge. 2024-05-15 21:25:45 -05:00
Gazook89 9a4a14fa97 add license, rename files for clarity, update references 2024-05-15 20:48:58 -05:00
Gazook89 0c76a546e4 Merge branch 'master' into RPG-Awesome-Redux 2024-05-15 20:19:00 -05:00
Trevor Buckner a6b2dab9cc Linting 2024-05-08 14:53:24 -04:00
Trevor Buckner 5bcd3a1b01 Clear up steps 2024-05-07 15:54:08 -04:00
Trevor Buckner cfffb4961b Rename files, add some instructions to markdown.js 2024-05-07 15:28:05 -04:00
Trevor Buckner df3d1078f1 Add FontAwesome Solid to emoji list 2024-05-05 01:50:38 -04:00
Trevor Buckner cd35e91ea2 add elderberryInn to emoji syntax 2024-05-03 21:40:08 -04:00
Trevor Buckner 2309887c92 Change diceFont to camelCase to match existing naming convention 2024-05-03 21:40:08 -04:00
Trevor Buckner d36e6e5834 Hack to avoid conflict with emojis 2024-05-03 21:40:07 -04:00
Trevor Buckner 9f19514b03 CodeMirror Dropdown working 2024-05-03 21:40:07 -04:00
Trevor Buckner ade1056a02 Include Dicefont 2024-05-03 21:40:07 -04:00
Trevor Buckner dce86580ce Added additional tests for injection 2024-05-03 17:02:12 -04:00
Trevor Buckner 660a586a7c Clarify comments 2024-05-03 15:01:04 -04:00
Trevor Buckner 193cde0925 Passes all tests 2024-05-03 14:31:34 -04:00
Trevor Buckner bb8ade435d Now passing many previously failing tests 2024-05-03 12:40:03 -04:00
Trevor Buckner 94905f8151 Back to passing all tests (not the "failing" tests yet) 2024-05-03 12:12:55 -04:00
Trevor Buckner 9fb0f37718 Pass CSS props from curly spans/divs as an object for finer control 2024-04-30 23:52:19 -04:00
Gazook89 7ca38b88ad add RPG awesome icons
This branch just does the same thing as the RPG Awesome repo, but more closely aligns with the code used in the other icon fonts and isn't an NPM package.
2024-04-19 23:15:02 -05:00
Trevor Buckner 83103a893a add elderberryInn to emoji syntax 2024-04-18 23:06:21 -04:00
Trevor Buckner 1177fd721c Change diceFont to camelCase to match existing naming convention 2024-04-18 16:57:35 -04:00
Trevor Buckner 4622a74786 Merge branch 'master' into EmojiSyntax 2024-04-17 01:08:19 -04:00
Trevor Buckner 68a68bde82 Only check for DLs at start of line
Previous "start" regex used `^` instead of `\n`, which meant if the first character in a line failed to start a match, it would check for the start of a DL in *every* character in the line, which slows things down a lot.
2024-04-17 01:03:25 -04:00
Trevor Buckner e1186b4a1e Rename Inline to SingleLine 2024-04-17 01:01:58 -04:00
Trevor Buckner 72cfca1158 Hack to avoid conflict with emojis 2024-04-17 00:56:43 -04:00
Trevor Buckner b0c2521101 CodeMirror Dropdown working 2024-04-12 14:12:30 -04:00
Trevor Buckner 61a4b558a8 Include Dicefont 2024-04-10 18:25:45 -04:00
G.Ambatte b35739c5c1 Change Marked extension priority order 2024-03-27 15:48:34 +13:00
G.Ambatte bae56b8b9d Fix crash when match is undefined 2024-03-22 14:27:45 +13:00
Trevor Buckner bd324a7e74 Fix crash for DL, disallow block tokens as DT, add test 2024-03-19 13:14:58 -04:00