Comments (9)
The issue with angle brackets is that they're element-like. <<x>>
will probably be parsed as <<x>></x>
by the browser. It would be annoying to type <<x>>
for sure, but it would also suck to have to use completely different characters to appease the HTML gods.
We use fancy characters in some places (like <=, >=, etc.) so I wonder if we can get away with just requiring people to paste in the proper character...
from ecmarkdown.
I'd be ok with e.g. {{x, y}}
. Keyboard-friendly ASCII-authoring seems important.
It kind of sucks that we can't have EMD convert >=
to ≥ for you either, hmm.
from ecmarkdown.
I am not familiar with the relevant algoriths but a > with a space before it and a < with a non-letter character after it seem to be auto-escaped? Perhaps emd can use similar heuristics to know what unescaped < and > characters belong to tags and which don't?
from ecmarkdown.
Upon re-visiting this it seems completely fine to me to translate <<x>>
EMD source into «x» output. We would of course not translate <x>
or similar, but two opening <<
s with some >>
s within the same segment seems like a fine translation.
from ecmarkdown.
The problem with this is that if the document is first passed through an HTML parser (which is the case for an emu document), <<x>>
will be hard to handle since <x>
will be parsed as a tag and the whole string possibly even normalized to <<x>></x>
per HTML parsing rules.
If we require a space around the list name, eg: << x >>
, it could work...
from ecmarkdown.
Oh, right... that makes sense. I mean, you could imagine a world where EMD is the outer layer before you get to a HTML parser, but that's a whole can of worms.
OK, reverting to {{ x }}
probably. And deprioritizing.
from ecmarkdown.
is << x >>
not better than the curlies?
from ecmarkdown.
Whitespace sensitivity always feels meh... Maybe it's fine though? Maybe something to ask the userbase about after getting a bit more experience.
from ecmarkdown.
MD is already whitespace sensitive in a few places (lists, eg.) and EMD in at least one more place (inside _
), so I say it's fine. But I think this is basically super low pri compared to most of the other work items so lets wait on some more experience.
from ecmarkdown.
Related Issues (20)
- Make sure docs are consistent and complete HOT 1
- Link syntax HOT 3
- where does a segment end? HOT 19
- Tags not included in AST
- Fix parse error for dedenting lists
- ordered list (alg. fragment) begins with non-decimal item number HOT 4
- Blank line leads to blank section HOT 2
- Need guidance on what constructs to use when HOT 8
- __proto__ converts to <var></var>proto__ HOT 1
- Double-decoding issue leading to difficulty to output `<!` in emu-grammar HOT 3
- Documents hang forever if there is no newline at the end HOT 3
- Need an interactive demo page
- Add support for adding labels (ids) to steps HOT 4
- Consider dropping support for full documents HOT 2
- Handle CRLF HOT 3
- parabreak processing breaks spec rendering HOT 4
- Tag new Version HOT 2
- js-beautify is using old version causes error [simple fix] [pull request submited] HOT 10
- Re-tag new version HOT 7
- Fields and slots should be eligible for ecmarkup interactive highlighting
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 ecmarkdown.