Trevor Buckner
e2cd7d9f07
Legacy renderer ( #1184 )
...
* Include two versions of Marked.js
* Include two versions of Marked.js
* Working two different render pipelines
Adds stylesheet "styleLegacy.less"
Adds markdownHandler "markdownLegacy.js"
The BrewRenderer will switch between these and the new pipeline dependent on the "version" prop passed in.
* Mustache-style div blocks
* Legacy snippets & columnbreak
* Codemirror styling for Div Blocks
* Lint
* Codemirror highlights for inline Divs as well
These will turn red `{{class Content}}`
Multi-line divs will turn purple
```
{{class,class2
content
}}
```
No real need for these to be different colors. Just for testing.
* More lint
* Update dependencies.
* Adding Button to switch render pipelines
* Update Marked.js
* Popup alert to refresh page when renderer changed
* Don't compress files in Development (very slow)
* Block DIV or inline Span depending on {{ placement
* \column emits a Div instead of Span
* Allow share page to use new renderer
* {{ divs no longer need empty lines. Spans work in lists.
* Typo
* Typo
* Enforce \page must be at start of line. Code cleanup.
* Inject newlines after/before {{/}} to avoid needing blank lines
* Fixes issues with tables.
* Remove console.log
* Fix spacing issue for Spans
* Move things from Brewrenderer to Markdown
Try to keep all custom text fiddling in one spot.
* Rename variables
* Update Font-Awesome to v5.15. Fix style issues on popups.
* Update {{ Divs/Spans, Fix nested hilighting
* Fixed Spans/divs with no tags or just commas
* Use blacklist for {{ to allow more characters
* Update package-lock.json
* Update all icons to Font-awesome 5
* V3 hidden behind config variable
Add "globalThis.enable_v3 = true" in the console to enable.
* lint
2021-02-02 20:38:25 -05:00
Trevor Buckner
6a2e39355c
V2.10.7 ( #1215 )
...
* Fix for box-shadow/border-image issues on blockquotes in new columns (#1179 )
* Fix for issues with box-shadow and border-images on blockquotes when they appear at the top of columns other than the first.
* Update phb.style.less
Change to `-webkit-transform` IAW Github PR discussion
* Add comment
Co-authored-by: Sean Robertson <srobertson@fqnz.co.nz >
Co-authored-by: Trevor Buckner <calculuschild@gmail.com >
* Title will always return *something*, and not CSS (#1214 )
* Bump codemirror from 5.59.1 to 5.59.2 (#1200 )
Bumps [codemirror](https://github.com/codemirror/CodeMirror ) from 5.59.1 to 5.59.2.
- [Release notes](https://github.com/codemirror/CodeMirror/releases )
- [Changelog](https://github.com/codemirror/CodeMirror/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codemirror/CodeMirror/compare/5.59.1...5.59.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Bump mongoose from 5.11.9 to 5.11.13 (#1199 )
Bumps [mongoose](https://github.com/Automattic/mongoose ) from 5.11.9 to 5.11.13.
- [Release notes](https://github.com/Automattic/mongoose/releases )
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md )
- [Commits](https://github.com/Automattic/mongoose/compare/5.11.9...5.11.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Bump fs-extra from 9.0.1 to 9.1.0 (#1197 )
Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra ) from 9.0.1 to 9.1.0.
- [Release notes](https://github.com/jprichardson/node-fs-extra/releases )
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jprichardson/node-fs-extra/compare/9.0.1...9.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Bump eslint from 7.17.0 to 7.18.0 (#1195 )
Bumps [eslint](https://github.com/eslint/eslint ) from 7.17.0 to 7.18.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v7.17.0...v7.18.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Bump nconf from 0.11.0 to 0.11.1 (#1190 )
Bumps [nconf](https://github.com/flatiron/nconf ) from 0.11.0 to 0.11.1.
- [Release notes](https://github.com/flatiron/nconf/releases )
- [Changelog](https://github.com/indexzero/nconf/blob/master/CHANGELOG.md )
- [Commits](https://github.com/flatiron/nconf/compare/v0.11.0...v0.11.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Bump googleapis from 66.0.0 to 67.0.0 (#1189 )
Bumps [googleapis](https://github.com/googleapis/google-api-nodejs-client ) from 66.0.0 to 67.0.0.
- [Release notes](https://github.com/googleapis/google-api-nodejs-client/releases )
- [Changelog](https://github.com/googleapis/google-api-nodejs-client/blob/master/CHANGELOG.md )
- [Commits](https://github.com/googleapis/google-api-nodejs-client/compare/v66.0.0...v67.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Trevor Buckner <calculuschild@gmail.com >
* Bump express-static-gzip from 2.1.0 to 2.1.1 (#1180 )
Bumps [express-static-gzip](https://github.com/tkoenig89/express-static-gzip ) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/tkoenig89/express-static-gzip/releases )
- [Commits](https://github.com/tkoenig89/express-static-gzip/compare/v2.1.0...v2.1.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Trevor Buckner <calculuschild@gmail.com >
* use fa-info-circle instead of fa-bars (#1109 )
* use fa-info-circle instead of fa-bars
* Change Metadata button to Info Icon with Text
Co-authored-by: Trevor Buckner <calculuschild@gmail.com >
* Up Version
Co-authored-by: G.Ambatte <sean@robertson-family.nz >
Co-authored-by: Sean Robertson <srobertson@fqnz.co.nz >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: ericscheid <ericscheid@users.noreply.github.com >
2021-01-25 21:47:36 -05:00
Trevor Buckner
3b52888877
Merge pull request #1078 from RKuerten/update-b-i
...
Updated makeBold and makeItalic functions
2020-10-28 22:26:49 -04:00
Trevor Buckner
e23120a4c6
Reduce duplicate code
2020-10-28 22:25:25 -04:00
Trevor Buckner
38d47f6aa1
Remove console.log slowing things down.
2020-10-27 11:24:07 -04:00
Trevor Buckner
3a25123d7b
Fix internal section link in iFrame
2020-10-27 11:06:07 -04:00
Rodrigo Kuerten
19c04e125a
Linting?
2020-10-26 23:09:36 -03:00
Rodrigo Kuerten
8a13387874
Updated makeBold and makeItalic functions to center cursor when selection is empty
2020-10-26 22:49:09 -03:00
Trevor Buckner
c75ac3c0f5
Render brew in Iframe to not crash editor
2020-10-21 20:39:43 -04:00
Trevor Buckner
22a9799674
Update vitreum ( #946 )
...
- Updates Vitreum to v6.0.1 + some custom fixes.
- Stylesheets must be imported with `require('./sheet.less');` but can also can now share stylesheets between jsx components.
- Should eliminate a lot of security concerns with older nested dependencies.
- Changed a lot of files to make this work
- Also removes dependency on PicoRouter in favor of React-Router
2020-05-19 01:36:31 -04:00
Trevor Buckner
7c813be13a
Revert Marked Update
...
Too many edge cases still broken. Bah.
2020-05-10 21:11:03 -04:00
Trevor Buckner
fcbd117784
Merge branch 'master' into update-Marked-renderer
2020-05-09 13:33:33 -04:00
Trevor Buckner
4ad63d5bce
Change text in RenderWarning popup
...
Reflect our policy of testing only on Chrome, but remove the specific issue of column-span support as that is now supported by other browsers.
2020-05-08 15:04:38 -04:00
Trevor Buckner
a0e92b54d0
Fix multiline IMG tags breaking
2020-05-08 13:15:35 -04:00
Trevor Buckner
62f549f038
Fix Markdown rendering right after Divs
2020-05-06 16:30:35 -04:00
Trevor Buckner
e8f3b0c8d0
Fix Tables with uneven columns
2020-05-02 15:03:18 -04:00
Trevor Buckner
5631ef7be7
Fix HTML right before markdown
...
Allow raw HTML tags to end without a blank line if markdown is right after
2020-04-14 10:26:42 -04:00
Trevor Buckner
5bc948ab0a
All fixes seem to be working?
2020-03-25 12:09:50 -04:00
Trevor Buckner
b9cfc2e6af
Fixed need for spaces to render html in a DIV
...
Marked update does not naturally detect the end of blocked elements like DIVs. The fix is to handle cases where only one half of the Div is detected separately.
2020-02-04 14:10:36 -05:00
Trevor Buckner
c634192289
Added a notification popup similar to the "YOU ARE NOT USING CHROME" message. Can be used to notify users of current known issues, updates, etc.
...
Currently just reminds users to back up documents with a link to the Reddit FAQ.
2019-01-11 16:26:03 -05:00
Scott Tolksdorf
448ea5cf5c
Making the script tag stripper case insensitive
2018-12-03 09:55:49 +00:00
Scott Tolksdorf
20b719d0de
Added in a function to sanatize script tags specifically
2018-12-03 09:55:49 +00:00
Kurtis Miller
34741291c7
Fix ESLint errors
2018-11-26 20:12:59 -05:00
Kurtis Miller
aafac16af2
Add bold/italic shortcuts, reposition renderer warning
2018-11-26 20:12:59 -05:00
Trevor Buckner
911d1d4f9c
Hide duplicate scrollbar in brewRenderer
2018-11-13 15:24:46 -05:00
Rae Che
f2f45f3657
RenderWarnings: Remove dead code
2018-05-31 10:53:07 -04:00
Scott Tolksdorf
f18a181e2e
Updating to user create-react-class
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
ed1b5252be
lint
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
b68c6a4ad2
Added ability to hide render wanring notification
2017-04-22 12:09:18 -04:00
Scott Tolksdorf
cc8e874ad1
Disabling zoom check, since it does not play well with many browsers
2017-01-21 20:38:35 -05:00
Scott Tolksdorf
6544d63b23
Updated vitreum, fixed events in render warnings
2017-01-17 00:39:28 -05:00
Scott Tolksdorf
5bfa195dc7
added listner for zoom event
2017-01-15 11:38:22 -05:00
Scott Tolksdorf
9b936f42f3
Added tooltip to metadata editor and upped the version of font awesome
2017-01-14 14:35:36 -08:00
Scott Tolksdorf
5fe7c7a6d8
renamed render warnings and now built into the brewrenderer
2017-01-14 14:21:51 -08:00
Scott Tolksdorf
6e86d9c123
Added a quick build task and created the warnings component
2017-01-14 13:53:09 -08:00
Scott Tolksdorf
62e4997fa9
emoved a ton of unsued files
2016-12-26 13:43:18 -05:00
Scott Tolksdorf
b45ec32e44
Removing the need to have codemirror in shared
2016-12-26 13:29:11 -05:00
Scott Tolksdorf
56048ab936
vitreum 4 is looking stable
2016-12-25 21:44:27 -05:00
Scott Tolksdorf
9285e53e55
Added conditional partial page rendering
2016-12-03 14:49:00 -05:00
Scott Tolksdorf
e61bf22788
Added in metadata editor
2016-11-23 14:47:28 -05:00
Scott Tolksdorf
2a0c06cd3d
New error bar made
2016-09-24 10:25:10 -04:00
Scott Tolksdorf
dd1264d2e6
New html validator is working
2016-09-24 10:25:10 -04:00
Scott Tolksdorf
c49321d590
Creating new validator
2016-09-24 10:25:10 -04:00
Scott Tolksdorf
cd2337ff2c
Experimenting with validation more
2016-09-24 10:24:38 -04:00
Scott Tolksdorf
9eb26a95f3
IMproved validator logic
2016-09-24 10:24:38 -04:00
Scott Tolksdorf
c7ccf6747c
Updating project version
2016-09-24 10:24:38 -04:00
Scott Tolksdorf
9a96eebdb1
Adding my own markdown-html validator, still needs line numbers though
2016-09-24 10:24:01 -04:00
Scott Tolksdorf
019383ebdd
Improved the html parsing slightly
2016-08-20 12:44:39 -04:00
Scott Tolksdorf
e38850f807
Created new wrapper for my markdown parser, added it to the print page
2016-06-07 09:50:50 -04:00
Scott Tolksdorf
39d5d5c458
Updating more routes, looking good
2016-06-04 18:34:48 -04:00