Commit Graph
130 Commits
Author SHA1 Message Date
Zef Hemel a7191d540a Expose htmlEscape function for external use and integrate it into the HTTP server response handling to sanitize DESCRIPTION values. 2025-03-31 16:03:35 +02:00
Zef Hemel 55be05031c Markdown widget removal 2025-03-22 08:40:26 +01:00
Zef Hemel 1284d15a8b Remove command buttons 2025-03-21 16:12:10 +01:00
Zef Hemel fa8f07a123 Kinda working 2025-03-21 16:12:10 +01:00
Zef Hemel d50ddc2357 First very rough pass of cleanup 2025-03-21 16:12:07 +01:00
Zef Hemel 6307ce4242 Lua widget revamp 2025-03-14 15:58:01 +01:00
Zef Hemel 0a80c5c537 Collapse PageRef, DocumentRef and LocationRef into a single Ref type 2025-03-07 13:49:20 +01:00
MrMugameandGitHub e61a447d98 Implementing #913 (#1230)
Implemented custom editors
2025-03-06 15:11:17 +01:00
Zef Hemel 5eb2405823 Fixes #1234 2025-02-09 17:57:59 +01:00
Zef Hemel d42d2277b2 Expose markdown.expandCodeWidgets and markdown.markdownToHtml as syscalls 2025-02-08 16:51:48 +01:00
Zef Hemel 9317d143b3 Fixes #1231 2025-02-08 16:51:31 +01:00
Zef Hemel eb788c68ca Fixes to template Lua expansion 2025-02-06 12:21:21 +01:00
Zef Hemel e1c997616c Support ${lua expression} in templates 2025-02-06 11:58:27 +01:00
Ohad LutzkyandGitHub 1e30517955 Open external links in a new tab (#1229)
Fixes https://github.com/silverbulletmd/silverbullet/issues/1228. This matches the generated HTML to the current behavior of editor.openUrl.
2025-02-03 19:52:45 +01:00
Marek S. ŁukasiewiczandGitHub 1508f6bcbf Correctly extract hashtag content in links and Page Picker filter (fix #1196) (#1199) 2025-01-07 19:57:46 +01:00
TR StaakeandGitHub 2020e85a6f Update how tags are rendered to allow for custom styling (#1179)
* Updated how tags are rendered to allow for custom styling via space-styles

* Wrapped the existing span for a tag with an anchor element <a> to
improve ux for screen readers
* Added data-tag-name attribute to tags so that given a tag `#my-tag` it
will have the attribute `data-tag-name="my-tag"` added to the new `<a>`
element wrapper allowing for end users to target tags for styling with a
css selector such as `.sb-hashtag[data-tag-name="my-tag"]{...}`

* Updated Docs
2024-12-14 09:57:46 +01:00
Peter WestonandGitHub b532b9e3f1 Fix tests for windows paths (#1153) 2024-11-13 21:08:24 +01:00
Zef Hemel 1299d85e9a First simple Lua directive Live Preview 2024-10-05 15:37:36 +02:00
Ruibin XingandGitHub bddb1b5da9 Export PDF through print. (#1065)
Add print button for markdown panel
2024-08-28 17:32:29 +02:00
Zef HemelandGitHub 6b69449d05 More JSR (#1027)
* Move all syscalls to JSR-style package naming
* Eliminating some prefixes in import maps
2024-08-06 20:11:38 +02:00
Zef HemelandGitHub 64b6d9e2df Space config (#1011)
Space config + a whole bunch of other tweaks
2024-08-02 16:47:36 +02:00
70cb0fc226 Per-tag page styling (#945)
PageDecorator add cssClasses

---------

Co-authored-by: Zef Hemel <zef@zef.me>
2024-07-31 11:28:31 +02:00
Zef Hemel c111f72e09 Lint error removal 2024-07-30 17:33:33 +02:00
Zef Hemel 9f353f7de1 More JSR dependency moves 2024-07-30 17:24:17 +02:00
Zef Hemel 64e116f75e lint cleanup 2024-07-30 15:17:34 +02:00
Zef Hemel b560c0dcc8 Fixes #970 2024-07-24 07:03:43 +02:00
Eric YangandGitHub fefda09c2b Fix blank space above tables issue (#952) 2024-07-17 12:49:48 +02:00
Zef Hemel e4da0b7849 Refined implementation of #560 2024-07-14 11:29:43 +02:00
Deepak NarayanandGitHub 850c06fd70 Fixes #560 and provides an initial implementation for assigning (#940)
decorators to tags.

This patch enables decorations for user specified tags - starting
with handling only a single decoration - a 'prefix' to be added
to the page name. Prefix is handled in the top bar title,
page navigator, wiki-links appearing within a page as well as
page autocomplete suggestions.
2024-07-13 13:56:00 +02:00
Zef HemelandGitHub fb21377bef Transclosure support for pages (#925)
Transclusion implementation
2024-07-09 09:22:08 +02:00
Zef Hemel 470c1153ed Support auto link in markdown render 2024-06-13 11:47:03 +02:00
MrMugameandGitHub 892849c30b Fixes the white flash for widget iframes & Make use of panel api (#882)
* Fix widget iframes flashing when loading

* Set the data-theme attribute for all panels
2024-06-08 13:32:35 +02:00
Zef Hemel 60461cf2db Support level 6 headings in preview 2024-06-07 08:27:11 +02:00
MrMugameandGitHub 442133ea2b Add subscript and superscript (#879)
* Added superscript and subscript to markdown

* Added docs for Superscript and subscript

* Remove leftover brace
2024-06-07 08:21:16 +02:00
MrMugameandGitHub 8524c0f96f Fix for flashing markdown preview (#880) 2024-06-07 08:19:26 +02:00
onespacemanandGitHub 1f949158e9 Index []() style links (#827) 2024-05-27 20:33:41 +02:00
FlorentandGitHub 827b08c21f Support size for images (#833)
* Support size for images

* Also support dimensions while rendering markdown

* Parser - ImageWithSize: Comment regexp with examples
2024-05-19 11:05:48 +02:00
Justyn ShullandGitHub 331d526f52 Fix frontmatter indexing error when a tag is a number (#830)
* Fix indexing error by always treating frontmatter tags as strings

* Only try escaping html in actual strings
2024-03-26 21:04:34 +01:00
MaksandGitHub 8a3782e946 improve dependency management (#770)
* use import_map.json instead of per-file import

* remove test_deps.ts in favor of import_map

* remove common/deps.ts in favor of import_map

* use import_map instead of server/deps.ts

* make all plug-api files usable without an import_map

* make all lib files usable without an import_map

* remove web/deps.ts in favor of import_map

* fix plug build

* remove plug-api/deps.ts in favor of lib/deps.ts

* fix server deps bundled in client deps
2024-03-16 15:29:24 +01:00
Justyn ShullandGitHub 2eb9ecd34f Only prepend attachmentUrlPrefix if url doesnt already start with it (#800) 2024-03-13 08:26:40 +01:00
Zef Hemel 5cf38617af Fixes #793 2024-03-10 12:28:13 +01:00
Zef Hemel c584bbeb0a Fixes #745 2024-03-02 13:09:05 +01:00
Zef Hemel e919aa82e9 0.7.4 2024-02-29 15:23:05 +01:00
Zef Hemel e046415f05 First iteration of new take on sharing 2024-02-28 12:16:51 +01:00
Joe KrillandGitHub da762356db Inject custom styles and theme into markdown preview pane (#741) 2024-02-23 09:01:38 +01:00
Zef HemelandGitHub 60d3199d64 Giant code reorganization (#690)
Code restructure
2024-02-08 21:00:45 +01:00
Zef Hemel e2aa869660 Fix markdown rendering for links with markup 2024-01-28 16:14:05 +01:00
Zef Hemel 8a89d69c22 Fixes #640 2024-01-24 14:44:39 +01:00
Zef Hemel ad4a795e7f Remove "syntax" support from plugs 2024-01-24 13:34:12 +01:00
Zef HemelandGitHub aaacec6d61 Navigator refactor (#648)
Navigation refactor
2024-01-24 11:58:33 +01:00