Trevor Buckner
1c65ee150b
relocate renderer.link
2024-01-22 17:56:40 -05:00
G.Ambatte
9ed32527a6
Account for prefixed spaces when generating text
2023-12-17 15:47:17 +13:00
Trevor Buckner
507f170720
Merge branch 'master' into pr/3066
2023-12-14 16:45:57 -05:00
Trevor Buckner
8cf57dbc72
Merge branch 'master' into pr/3066
2023-12-14 15:01:28 -05:00
Trevor Buckner
9b59f47536
Simplify Attributes parsing logic
2023-12-14 13:58:38 -05:00
Trevor Buckner
90b4e47861
Fix ' ' removed from processStyleTags regex
...
Removes the case of "empty properties" that needed `.trim()`
2023-12-14 13:47:36 -05:00
Trevor Buckner
c39653bc69
Merge branch 'master' into pr/3131
2023-12-14 12:24:48 -05:00
Trevor Buckner
af20d0b1c2
Make a lot of Markdown tests pass
2023-12-14 12:20:50 -05:00
David Bolack
769f636db2
Small fix and test updates
...
Discovered that classes ( and possibly other splits could end up with an
empty/null member that still gets joined so I added a trim to the end of
all the joins in processStyleTags.
Added tests that SHOULD test for bloc-level and inline-span moustaches
with added attributes ( a=b )
2023-12-06 17:48:51 -06:00
David Bolack
688eca05e1
Update Regex pattern to be consistant.
2023-12-06 16:59:53 -06:00
David Bolack
4c48992331
Merge branch 'master' into Issue_1488
2023-12-06 16:56:43 -06:00
Víctor Losada Hernández
d39ae139d7
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into single-quote-inline-style
2023-12-06 00:26:53 +01:00
Trevor Buckner
38fa428fde
Change to 1 and 2 ^'s . Slight cleanup
2023-12-04 22:11:05 -05:00
David Bolack
c858c705d2
Complete mustache div updates for attr
2023-11-11 22:23:43 -06:00
David Bolack
c068aca9ff
Small tweaks to processStyle.
...
This changes the output on arbitrary outputs to always wrap the value in
quotes instead of only doing so on whitespaced values.
2023-11-11 15:47:27 -06:00
Louis David Bolack
8d94e5fbe0
Update shared/naturalcrit/markdown.js
...
Co-authored-by: Trevor Buckner <calculuschild@gmail.com >
2023-11-10 23:10:01 -06:00
Louis David Bolack
c6d8bbae16
Update shared/naturalcrit/markdown.js
...
Co-authored-by: Trevor Buckner <calculuschild@gmail.com >
2023-11-10 23:09:49 -06:00
David Bolack
7b85995b4a
Updated attribute assignment.
...
Wraps with quotes ( a="b and c" )
Still does not work on Mustache Divs. UNsure where the failure is at the
moment. Even regressed "a:b and c" pattern on those.
2023-11-10 00:28:25 -06:00
David Bolack
7b9a23670d
Update Regex based on PR siuggestions.
...
This should match more economically and in line with marked
recomendations as well as not allow whitespace ( \s ) at the beginning
or end of a sub or superscript mark. Additionally, a failure in having
mixed sub and supers on the same line was corrected.
2023-11-09 21:31:08 -06:00
David Bolack
d43ea46e40
Add subscript and subscript markdown tokens
...
Uses ^^ for superscript and ^^^ subscript as wrappers in the same
pattern as italics and bold ( * and **, respectively)
Adds editor hot-keys and sytax highlighting. (CTRL-6/CTRL-7)
Exact values may not be ideal. Short of the suggestted overloading of ~,
I didn't see a better option for the delimiter.
2023-11-08 00:54:43 -06:00
David Bolack
f1ca6eeee2
Near complete
2023-11-08 00:49:39 -06:00
David Bolack
d390d518a3
Initial commit, subscripts and superscripts
2023-11-07 22:42:53 -06:00
David Bolack
837306c9a7
Add tests for arbitrary attributes.
...
Also shifted around the adding of spaces for the attributes.
2023-11-07 19:07:58 -06:00
David Bolack
c58c8777f1
Add arbitrary tag attr assign. in moustaches
...
This adds the ability to include attribute values for any element that
can be altered by a moustache.
Form:
```
{attribute=value}
example:
 {position:absolute,bottom:20px,left:130px,width:220px,a=b and c,g=h}
```
In order to permit spaces, the pattern matches for moustache code had to
remove the space character as a delimiter. I believe I have adequate
compensated.
This should solve #1488
2023-11-07 17:43:24 -06:00
Víctor Losada Hernández
738fc62b8f
initial commit
2023-09-27 18:20:56 +02:00
G.Ambatte
46cb2e6b5b
Merge branch 'master' into addStyleSanitization-#1437
2023-06-23 09:44:05 +12:00
Trevor Buckner
b33b3cd49b
extract smartypants into package
2023-06-22 14:31:14 -04:00
G.Ambatte
b472fc1115
Move script tag sanitization to BrewRenderer
2023-06-17 20:25:15 +12:00
Trevor Buckner
942fdb8095
Replace SmartyPants plugin with custom
2023-06-02 17:02:45 -04:00
Trevor Buckner
2c73e59eb0
Remove deprecated options
2023-05-31 11:14:57 -04:00
Trevor Buckner
48227eaf71
Remove Console.log and lint
2023-04-04 12:18:57 -04:00
Gazook89
6a95ed57ca
escape tokenization of injection if preceded by another injection.
2023-03-24 15:15:08 -05:00
Trevor Buckner
c41b06eee1
Remove duplicate renderer on Marked.parse call
2023-03-23 12:03:30 -04:00
G.Ambatte
f528b55226
Move renderer assignment to options
2023-02-21 07:42:38 +13:00
G.Ambatte
17525a4f41
Add renderer option to HTML blocks in Markdown
2023-02-20 21:35:00 +13:00
Trevor Buckner
8016f82040
Tweak capture group order
2022-11-14 18:56:04 -05:00
Gazook89
5f2115da0e
fix mustacheInjectBlock pattern as well (missed it earlier)
2022-11-13 20:32:01 -06:00
Gazook89
1dd1e677e4
adjust span regexp pattern to capture trailing spaces
2022-11-13 20:19:39 -06:00
Gazook89
4493d86fd5
fix injection curly syntax
2022-11-13 20:05:52 -06:00
Gazook89
03c6edf31a
change regexp to calculuschild's atomic fix
2022-11-07 10:01:22 -06:00
Trevor Buckner
98f6ba6045
Update Marked to v4.0.7, use Extended-Tables extension
2021-12-13 15:21:53 -05:00
Trevor Buckner
0ff5af5e0b
Merge pull request #1583 from G-Ambatte/fixMarkdownTags-#432
...
Fix incorrect detection of unclosed <a> tag
2021-09-15 14:34:16 -04:00
Trevor Buckner
82b9f825d5
Update class Features snippet to v3
...
Puts adjacent `term :: definition` s into the same `dl` block for easier spacing of sets of terms.
2021-09-11 21:52:37 -04:00
Trevor Buckner
f435d65db7
Fix block-curly injector leaving behind an empty <p></p>
2021-09-09 10:35:08 -04:00
Trevor Buckner
1096c80b17
Make Markdown extensions work with Marked.js 3
2021-08-31 13:50:45 -04:00
Trevor Buckner
653fd513ad
inject newlines around \column so its DIV isn't consumed as markdown
2021-08-21 01:36:25 -04:00
G.Ambatte
c051ec19f2
Add voidTags whitelist and functionality
2021-08-17 20:50:41 +12:00
G.Ambatte
2be0d82a35
Fix typo.
2021-08-17 20:37:07 +12:00
G.Ambatte
bdfcde7661
Fix issue with <a>/<aside>
2021-08-17 20:23:26 +12:00
Trevor Buckner
64b62c5e98
Merge pull request #1575 from naturalcrit/v3WelcomePage
...
V3 welcome page
2021-08-16 10:17:45 -04:00