Comments (2)
The rules you're quoting are said to cover "precedence for inline containers." The way I was thinking of it, that excludes things like code spans and attributes. These have precedence over inline containers. In a full spec, all of this would need to be spelled out more explicitly.
Maybe the other issue is now fixed? With the latest in main I'm getting:
% ./djot
*{a=[txt](url)
<p>*{a=<a href="url">txt</a></p>
from djot.
The rules you're quoting are said to cover "precedence for inline containers." The way I was thinking of it, that excludes things like code spans and attributes. These have precedence over inline containers. In a full spec, all of this would need to be spelled out more explicitly.
Yes, and this precedence is probably the better alternative, but it does requires backtracking to parse. You have to parse for attributes first, and if it fails you have to go back and parse everything again. But I guess it should still be parsable in linear time, it is not really possible to nest arbitrarily many attributes within each other (trying to open another quote/comment will close the previous one).
Maybe the other issue is now fixed? With the latest in main I'm getting:
% ./djot *{a=[txt](url) <p>*{a=<a href="url">txt</a></p>
I think I accidentally typed the example without quotes. With quotes it still parses as text on the main branch:
% ./djot
*{a="[txt](url)
<p>*{a=“[txt](url)</p>
from djot.
Related Issues (20)
- Comments can break task lists HOT 2
- [suggestion] unless rationale rule 11, I suggest some alternative element syntax make djot more useable HOT 1
- List of attributes in Djot HOT 2
- Escapes should either be fully preserved in or fully removed from AST HOT 12
- Add ability to suppress spaces in soft line breaks HOT 1
- Allow Unicode symbols for list items such as •, ◦, ‣ HOT 3
- Explicit admonition types HOT 31
- Blockquote attribution / citation HOT 1
- Inclusion of other djot documents HOT 18
- Tight list and attributes HOT 1
- Task list item should allow for non-Latin checkmark HOT 4
- Limit numbers in ordered list markers HOT 5
- `[text][]` is shorthand for `[text][text]` – should `[text]()` mean `[text](text)`? HOT 3
- Footnote labels may contain spaces but not newlines
- Document implicit section behavior HOT 6
- Relax disallowing multiple words in `code block` / `div` first line? HOT 12
- Introduce leaf div (with `::`)
- Make `<section/>` wrappers optional (for HTML) HOT 4
- Normalize names of inline/block flavors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from djot.