V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
summerLast

lisp+ mkdown > notion ?

  •  
  •   summerLast · Mar 1, 2023 · 1718 views
    This topic created in 1157 days ago, the information mentioned may be changed or developed.

    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 replies    2023-03-02 09:35:30 +08:00
    TrembleBeforeMe
        1
    TrembleBeforeMe  
       Mar 1, 2023
    重新发明 org-mode ?
    KDr2
        2
    KDr2  
       Mar 1, 2023
    可以去看看 scribble 。
    summerLast
        3
    summerLast  
    OP
       Mar 1, 2023
    @TrembleBeforeMe 没用过这个工具,看了一下示例还是很类似的,计划是做一个像 notion 和幕布一样的工具,在 markdown 语法的基础上前置增加一个 lisp 编译的环节,这样一想的话有点像 scss less 这类工具
    summerLast
        4
    summerLast  
    OP
       Mar 1, 2023
    summerLast
        6
    summerLast  
    OP
       Mar 2, 2023
    @KDr2 scribble 语法太复杂了 有太多的宏和方法了
    summerLast
        7
    summerLast  
    OP
       Mar 2, 2023
    @TrembleBeforeMe 设计上也有不同,比如 lmd 将文档当作对象处理,可以直接使用里面的变量,把表格当作数组处理 将用[](#) 声明变量,更像是一个简易的页面编程语言
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2702 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 03:08 · PVG 11:08 · LAX 20:08 · JFK 23:08
    ♥ Do have faith in what you're doing.