Commit Graph
31 Commits
Author SHA1 Message Date
David Bolack c1315b3512 Update Download endpoint to export four shapes of Markdown files
Restructures PDF download into an Export menu containing the PDF export and 4 Markdown Options
Slightly tweaks tests
Effectively moves the api.mergeBrewText to helpers. I think this makes more sense.
Changes the download extension from txt to 'md`.
The Commonmark, TOML, and JSON exports are the same with the frontmatter in a slightly different shape. These were selected based on lightweight research into Markdown Frontmatter.

If specific formats - such as Obsidian - are different enough in terms of formatting the frontmatter or desired metadata content, this is fairly easy
2026-10-13 12:34:51 -05:00
Víctor Losada Hernández 8a372c1454 lint js 2026-09-28 17:34:12 +02:00
Gazook89 9af2577c6e Add print cycle events and loading msg
Since the print cycle now loads all images not-yet-loaded (due to lazy loading), there can be a moment of time where it appears pressing Get PDF is doing nothing, depending on connection speed.  To add a "loading" message, a custom event is fired at the start and end of the print cycle (before the print dialog comes up).
2026-04-30 21:05:08 -05:00
Trevor Buckner 67b4d3b760 Revert "Embed Endpoint" 2026-04-04 21:15:57 -04:00
David Bolack fe0f0c56af Merge branch 'master' into HTMLDownload 2026-03-16 10:39:14 -05:00
Víctor Losada Hernández c096014871 shared folder (for markdown.js and helpers 2026-02-25 18:40:50 +01:00
David Bolack 2791c2259b Rework HTML Download options to use a DOM snatch and grab
Still requires path manipulation.

Stubs the same for Zipfiles.
2026-02-08 19:48:57 -06:00
David Bolack fabd280efa Remove Inline HTML option 2026-02-06 17:04:32 -06:00
David Bolack 7a89f942fe Merge branch 'master' into HTMLDownload 2026-02-06 17:00:25 -06:00
Víctor Losada Hernández 3e76046868 Revert "renamed client to src"
This reverts commit c28736bd01.
2026-02-01 17:36:53 +01:00
Víctor Losada Hernández c28736bd01 renamed client to src 2026-02-01 17:34:50 +01:00
Víctor Losada Hernández 9d03385a13 change imports 2026-01-24 00:29:15 +01:00
Víctor Losada Hernández fc8656e05b all imports 2026-01-20 22:14:34 +01:00
Víctor Losada Hernández 0d6c3c7e33 fix module.exports 2026-01-20 19:56:37 +01:00
David Bolack 5faa12a79e Initial Commit
Adds menu items for "regular", zipped, and inline output.

Currently only displays inline output with *no* URL massaging ( all relative path references are still relative )

Displays, not downloads
2026-01-09 16:22:07 -06:00
Gazook89 081fd6f39d Move nav.jsx from shared to client directory
Moving the one file, changing a lot of imports (18 files), and deleting a directory.
2025-11-03 20:58:00 -06:00
Trevor Buckner 8a55658bd7 Rename printPage function to printCurrentBrew()
Avoid confusion with other "page" components.
2024-05-28 16:11:18 -04:00
Trevor Buckner ac3168e365 Move "printPage()" to helpers.js for reuse in multiple pages 2024-05-24 19:28:02 -04:00
Trevor Buckner 24769d69d4 Force browser repaint after closing Print dialog 2024-05-23 17:08:24 -04:00
Trevor Buckner a227a792c0 Replace print redirect with print contentWindow on all pages 2024-05-22 15:54:01 -04:00
Víctor Losada Hernández 92e27cda6c "Removed unused imports of 'classnames' and 'create-react-class' from various JSX files. in the Client folder" 2024-05-17 22:31:55 +02:00
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
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 152194aba8 Changing the print button to say get PDF. Should be more clear to users 2016-09-14 09:53:27 -04:00
Scott Tolksdorf 7ca4e8ffa6 Swapped over all urls and refs to old url scheme 2016-06-04 18:29:25 -04:00
Scott Tolksdorf 626cba6062 Newlines 2016-05-28 09:41:05 -04:00
Scott Tolksdorf a1b52d79f9 Updated changelog 2016-05-14 16:05:57 -04:00
Scott Tolksdorf eb4117b35b Save button is functional 2016-05-10 00:50:17 -04:00
Scott Tolksdorf 743bcb0c74 getting the debounced saving working 2016-05-10 00:38:38 -04:00
Scott Tolksdorf ed7decb42b Adding new navitems and finishing the edit and share page 2016-05-09 16:54:32 -04:00