Replies: 3 comments 8 replies
-
I've been tempted by this idea myself. As for math, I think there'd still be an advantage to using verbatim backticks. The problem with |
Beta Was this translation helpful? Give feedback.
-
For prior art, Textile1 does this with Footnotes
|
Beta Was this translation helpful? Give feedback.
-
The idea is very tempting, but unfortunately ergonomics and unambiguity are at different poles of syntax. Rejection of natural markers will move Djot towards a declarative syntax, where everything is unambiguous, but not very convenient. A healthy balance is probably needed when the necessary minimum of markers is maintained, which expresses the most requested part of the handwriting syntax. These markers, of course, must be duplicated in a declarative style, like the rest of the functionality. I think @jgm did a very good job of that. |
Beta Was this translation helpful? Give feedback.
-
First off, thanks for starting this project! It sounds super useful and promising to me.
While diving through this repo, the docs and the discussions, I had a thought: Since the syntax using openers and closers (e.g.
{_text_}
instead of_text_
) resolves ambiguity and allows using many other punctuation characters for formatting (like discussed in #10), why not allow only that syntax? Wouldn't it be super clean and consistent to do all inline formatting using curly braces?If I had to come up with a syntax, ignoring what I am used to from Markdown, it could be something like this:
{/emphasis/}
,{*strong*}
,{_underlined_}
,{-deleted-}
,{+inserted+}
,{$ maths $}
,{`code`}
,{^superscript^}
,{~subscript~}
,{=highlighted=}
,{,small caps,}
, ...Would that be too obtrusive to read, compared to using the shorthand emphasis characters? If I look at the example below and squint a little, the
{}
are quite ignorable:Another advantage is that at some point code editors could auto-close any
{char
opener with the appropriatechar}
closer.Regarding maths, I think it may even be more intuitive and practical: With
$`E=mc^2`
the backticks indicate verbatim content, in contrast to{$ E=mc^2 $}
where the syntax even allows to simply copy and paste equations from LaTeX and surround them with curly braces.I'm curious to hear your thoughts on this. In any way, I'm a fan of djot already!
Beta Was this translation helpful? Give feedback.
All reactions