V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
summerLast
V2EX  ›  分享发现

lisp+ mkdown > notion ?

  •  
  •   summerLast · 2023-03-01 10:38:40 +08:00 · 846 次点击
    这是一个创建于 415 天前的主题,其中的信息可能已经有所发展或是发生改变。

    lisp + mkdown = online page

    在原有 mkdown 的语法上借鉴 lisp 的语法 从而实现变量定义和方法运算、循环、判读和多 page 引用等功能, 不知会有人用吗?

    这是一个示例

    • header.lmd
    [hello wrold](#pub h)
    
    • index.lmd
    ((use header))
    
    ((incloud './header.lmd'))
    
    ((header-h))
    
    [hello](#a https://bing.com)
    
    [| Syntax    | Description |
    | --------- | ----------- |
    | Header    | Title       |
    | Paragraph | Text        |](#b)
    
    (( a ))
    ((b-syntax (list-ref b 0)))
    
    ((map b (lambda (o) 
    	(string-append '##' (b-description o) '\n'))))
    
    • online page

    hello world

    hello world

    hello

    Syntax Description
    Header Title
    Paragraph Text

    hello

    Header

    Title

    Text

    这是我的个人主页,后期相关信息会在上面更新

    7 条回复    2023-03-02 09:35:30 +08:00
    TrembleBeforeMe
        1
    TrembleBeforeMe  
       2023-03-01 12:24:28 +08:00
    重新发明 org-mode ?
    KDr2
        2
    KDr2  
       2023-03-01 12:31:34 +08:00
    可以去看看 scribble 。
    summerLast
        3
    summerLast  
    OP
       2023-03-01 13:48:06 +08:00
    @TrembleBeforeMe 没用过这个工具,看了一下示例还是很类似的,计划是做一个像 notion 和幕布一样的工具,在 markdown 语法的基础上前置增加一个 lisp 编译的环节,这样一想的话有点像 scss less 这类工具
    summerLast
        4
    summerLast  
    OP
       2023-03-01 14:11:59 +08:00
    KDr2
        5
    KDr2  
       2023-03-01 17:07:53 +08:00
    summerLast
        6
    summerLast  
    OP
       2023-03-02 09:23:12 +08:00
    @KDr2 scribble 语法太复杂了 有太多的宏和方法了
    summerLast
        7
    summerLast  
    OP
       2023-03-02 09:35:30 +08:00
    @TrembleBeforeMe 设计上也有不同,比如 lmd 将文档当作对象处理,可以直接使用里面的变量,把表格当作数组处理 将用[](#) 声明变量,更像是一个简易的页面编程语言
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2187 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 00:24 · PVG 08:24 · LAX 17:24 · JFK 20:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.