Commit Graph
57 Commits
Author SHA1 Message Date
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
Stan Ionitoiu-JanssenandGitHub d38e757cd6 fix(tables): only escape pipes outside SB context (#1292)
* fix(tables): only escape pipes outside SB context

Fixes #943

* fix(tables): detect command context in tables

Fixes #1016

* Added tests for parsing tables
2025-03-15 20:58:43 +01:00
Zef Hemel 5b982ac257 Fix syntax highlighting of Lua expressions that start with whitespace 2025-02-10 20:30:37 +01:00
Zef Hemel b6f1977cec Lua runtime fixes 2025-01-09 10:27:41 +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
Ohad LutzkyandGitHub 3e153a525c Fix trailing periods for naked URLs (#1175)
Fixes https://github.com/silverbulletmd/silverbullet/issues/1160
2024-12-14 09:19:25 +01:00
Michael StapelbergandGitHub 8114b25470 markdown_parser: allow comma and semicolon in naked URLs (#1162) 2024-11-21 22:39:27 +01:00
Marek S. ŁukasiewiczandGitHub 010e2b23f4 Allow tags to start with a number and be escaped with angle brackets (#1116)
Includes tests and Markdown/Hashtags page for website. Closes #1072
2024-10-20 12:39:58 +02:00
Zef Hemel 1299d85e9a First simple Lua directive Live Preview 2024-10-05 15:37:36 +02:00
MrMugameandGitHub f7cfe328b8 Fixes #1101 (#1102)
* Make all keywords use @specialize

* Rebuild the grammar

* Making it work in the later parsers
2024-09-29 13:26:44 +02:00
Zef Hemel b1c46a17cf Redoing item and task indexing 2024-08-21 21:31:07 +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 Hemel 47f504f2ce deno fmt 2024-08-02 17:14:40 +02:00
Zef HemelandGitHub 64b6d9e2df Space config (#1011)
Space config + a whole bunch of other tweaks
2024-08-02 16:47:36 +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 6286e4a8ed Fixes #953 support decimals in query expressions 2024-07-17 20:34:52 +02:00
MrMugameandGitHub 9ed493aa00 Makes the behaviour of logic expressions consistent in all cases (#898)
* Returned the value of a logic expression in all cases

* Remove legacy call syntax

* Correct test

* Remove old call syntax from docs/library

* Corrected docs for call syntax

* Add null coalescing operator
2024-07-02 19:12:40 +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
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
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
Zef Hemel e919aa82e9 0.7.4 2024-02-29 15:23:05 +01:00
Matthew PietzandGitHub e290245621 Relax hashtag pattern matching (Support Emoji) (#752)
Adjust the RegExp for matching tags in order to better support compatibility
with other PKM systems. Though not the exact matcher used in Obsidian (since
its source is closed), this matcher is modeled mostly after it and allows most
non-whitespace characters, including Emoji.

I use a task line like `- [ ] Gift Idea #🎁 #Person-Name` to denote gift ideas
for friends and family. This patch allows SilverBullet to recognize the emoji.
2024-02-26 18:03:55 +01:00
Zef Hemel 7de987fd56 Use backtick syntax to support identifiers in expression language, see examples 2024-02-24 12:59:27 +01:00
Marek S. ŁukasiewiczandGitHub cf010b5ef2 Add unary minus to Expression Language (#732) 2024-02-21 07:28:59 +00:00
Zef HemelandGitHub 60d3199d64 Giant code reorganization (#690)
Code restructure
2024-02-08 21:00:45 +01:00
Zef HemelandGitHub 0ddbd877f9 Space script MVP (#685)
* Space Script MVP
* New `command` and `syscall` query sources
2024-02-06 16:51:04 +01:00
Zef Hemel 15358c8dd5 More #each in parsing fixes 2024-02-03 16:14:48 +01:00
Zef Hemel d0ebda0d7a Fixes #678 2024-02-03 15:28:24 +01:00
Zef HemelandGitHub 341c07049f Custom template parser (#672)
New template engine 🤯
2024-02-02 19:19:07 +01:00
Zef Hemel 8404256ccb Fixes #643 2024-01-25 11:42:36 +01:00
Zef Hemel ad4a795e7f Remove "syntax" support from plugs 2024-01-24 13:34:12 +01:00
Zef HemelandGitHub 91027af5fe Awesome frontmatter (#617)
Live Frontmatter Templates
2024-01-04 20:08:12 +01:00
Zef HemelandGitHub 8a2e081672 Fixes #529 by removing directives (#613)
* Fixes #529 by removing directives
* Load builtin tags on space reindex
2024-01-02 14:47:02 +01:00
Zef Hemel 90659c9c7e Make frontmatter foldable 2023-12-21 19:04:54 +01:00
Zef Hemel 6b0bf3c960 Folding outliner commands #13 2023-12-17 14:26:41 +01:00
e6f77b12af Initial implementation of command link arguments (#573)
Initial implementation of command link arguments

---------

Co-authored-by: prcrst <p-github@prcr.st>
Co-authored-by: Zef Hemel <zef@zef.me>
2023-11-25 18:57:00 +01:00
Zef Hemel 8f4d6e5d23 Fixes #542: render each and render all 2023-10-30 14:15:12 +01:00
Zef HemelandGitHub 0313565610 Complete redo of content indexing and querying (#517)
Complete redo of data store
Introduces live queries and live templates
2023-10-03 14:16:33 +02:00
Zef Hemel 2ee20af5c8 Custom task statuses plus various fixes 2023-09-01 16:57:29 +02:00
Zef Hemel 5a88254cde Refactoring about how proxy fetching happens 2023-08-23 19:08:21 +02:00
Zef Hemel 804d87436c Fixes #355 2023-07-27 17:02:53 +02:00
Zef Hemel 7b8d8af2c1 Attributes now have YAML values 2023-07-26 17:12:56 +02:00
Zef Hemel 41fb82b9d2 Restrict attribute names 2023-07-25 10:52:14 +02:00
Zef Hemel 2b494f263e Work on inline attributes 2023-07-24 19:54:31 +02:00
Zef Hemel 4a88b5636e Fixes #426 2023-07-02 11:46:23 +02:00