|
|
|
|
|
by Animats
620 days ago
|
|
> The selling point seems to be that this is more similar to Markdown. The problem is that extending Markdown syntax gets messy. #figure(
image("image.jpg", width: 70%),
caption: [
Observe the image in the picture
],
) <figure>
This is kind of a strange blend of Markdown, CSS, JSON, and HTML. TeX at least has a consistent syntax. |
|
Furthermore, quoting a random snippet without any elaboration is unhelpful and only serves to confuse people (as it already did for the other comment!)
# means "evaluate". figure(...) is the function being evaluated.
The syntax inside figure(...) is fairly regular, not too different from what you'd see in typical programming languages (but with a document-oriented twist like the %).
<figure> may seem to be related syntatically to #figure(...), but it's not. It's just a label. Like an HTML div tag with id="figure". It can very well be changed to <foo> in your example and it'd still work.