HackerTrans
トップ新着トレンドコメント過去質問紹介求人

zagap

no profile record

投稿

Show HN: Podlite 2.0 – a block-based markup language with typed blocks

podlite.org
1 ポイント·投稿者 zagap·先月·0 コメント

[untitled]

1 ポイント·投稿者 zagap·3 か月前·0 コメント

Show HN: The Raku Knowledge Base powered by Podlite markup language(Open-Source)

raku-knowledge-base.podlite.org
8 ポイント·投稿者 zagap·2 年前·0 コメント

Show HN: Podlite - a lightweight markup language for organizing knowledge

podlite.org
142 ポイント·投稿者 zagap·2 年前·47 コメント

Introducing Podlite, a lightweight block-based markup language

podlite.org
1 ポイント·投稿者 zagap·2 年前·6 コメント

コメント

zagap
·先月·議論
[flagged]
zagap
·2 年前·議論
Good question!

To meet modern requirements and make documents dynamic, we need a flexible API and integration with contemporary frameworks. Simple HTML just isn't up to the task. Although this was the approach during the early implementation (https://github.com/zag/js-pod6), it turned out to be a dead end.

thank you
zagap
·2 年前·議論
This is a wonderful and highly sought-after idea. However, it requires significant resources, so we will definitely come back to it and implement it. Thank you
zagap
·2 年前·議論
The existing typescript implemetation builds a complete AST (Abstract Syntax Tree), over which middlewares are run in several passes. Yes, there are multiple passes over the tree. This is necessary, among other things, to build a table of contents (TOC). thank you
zagap
·2 年前·議論
I agree with you on this. It's a cool feature.

What I find most interesting is that there’s no need to choose between Podlite and Markdown; you can use both and switch between them as needed.

I think Podlite could be really useful in document management systems and electronic publishing. But... let's see what practical uses Podlite will find.

thank you
zagap
·2 年前·議論
It's extensible and not tied to any specific programming language, allowing for constructs like this ( mix chunks of markdown and build TOC ):

---

=toc head1, head2, head3

=begin markdown

  # header from markdown
  ## second level
  
 =end markdown
 
 =head1 This is header from Podlite 
---

https://pod6.in/#p=%3Dtoc+head1%2C+head2%2C+head3%0A%0A%3Dbe...
zagap
·2 年前·議論
This is a specification, it does not declare how implementations work.

At the moment only typescript implementation exists and here is PEG grammars from it: https://github.com/podlite/podlite/blob/main/packages/podlit...

At the moment it supports Mermaid diagrams:

https://pod6.in/#p=%3Dbegin+Mermaid++%3Acaption%28%27Caption...
zagap
·2 年前·議論
The specification for the Podlite markup language is written using Podlite markup itself.

https://github.com/podlite/podlite-specs/blob/main/Specifica...

Also online playground is available here: https://pod6.in/

Thanks for your interest in Podlite! with best, Alex
zagap
·2 年前·議論
Ahh, yes, of course, there are no dogmas here, I think all options are possible. After all, this is just the beginning of the journey I think for Podlite )
zagap
·2 年前·議論
The idea of using short names is interesting:

For example:

=head1 -> =h1 =item1 * -> =i1 * =item1 [ ] -> =i1 [x]

Nice! thank you
zagap
·2 年前·議論
hi! Markdown is part of Podlite, so you can always switch to markdown mode:

=begin markdown

# I love markdown \o/

   * item 
   * item

 =end  markdown 


[example](https://pod6.in/#p=%3Dtoc+head1%0A%0A%3Dhead1+this+is+Podlit...)

thank you!
zagap
·2 年前·議論
The specification is licensed under Artistic License 2.0:

https://github.com/podlite/podlite-specs