mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-27 07:46:25 +00:00
chore: rebrand remaining Logseq references to Synapse
Describe Synapse's own Markdown dialect, export format and editor behaviour as Synapse's, rename Logseq-named history test identifiers, and set the app label/window titles to Synapse. The importer keeps its Logseq naming. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c4e9b79fa6
commit
adbbc45a56
24 files changed
+31
-31
No files matched your search
@@ -1,4 +1,4 @@
|
||||
//! Deterministic Logseq-compatible Markdown export of pages.
|
||||
//! Deterministic Markdown export of pages.
|
||||
//!
|
||||
//! Layout: `pages/<encoded title>.md`, `journals/YYYY_MM_DD.md`, `assets.json`.
|
||||
//! A page file starts with page properties (`key:: value`, aliases as `alias:: a, b`),
|
||||
@@ -26,7 +26,7 @@ pub const TAGS_PROP: &str = "synapse-tags";
|
||||
/// Page property with the type names (`synapse-types:: persona, lugar`).
|
||||
pub const TYPES_PROP: &str = "synapse-types";
|
||||
|
||||
/// Encodes a page title as a file name (Logseq "triple-lowbar" format: `/` becomes `___`,
|
||||
/// Encodes a page title as a file name ("triple-lowbar" format: `/` becomes `___`,
|
||||
/// characters illegal on Windows and `%` are percent-encoded).
|
||||
pub fn encode_title(title: &str) -> String {
|
||||
let mut out = String::with_capacity(title.len());
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//! Parser for the Markdown files produced by [`crate::export`] (and plain Logseq pages).
|
||||
//! Parser for the Markdown files produced by [`crate::export`] (and plain outline pages).
|
||||
|
||||
use crate::export::{DESCRIPTION_PROP, HUBS_PROP, KIND_PROP, TAGS_PROP, TYPES_PROP, parse_value};
|
||||
use serde_json::Value;
|
||||
@@ -224,7 +224,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn logseq_space_indent() {
|
||||
fn space_indent() {
|
||||
let p = parse_page("- a\n - b\n - c\n - d\n");
|
||||
let d: Vec<_> = p.blocks.iter().map(|b| b.depth).collect();
|
||||
assert_eq!(d, [0, 1, 2, 1]);
|
||||
|
||||
Reference in new issue
Block a user