Comments (11)
Worth noting that I believe this works with the fragment entry point currently as escapeHtml turns " into "
from ecmarkdown.
An alternate approach is to stop auto-codeifying strings everywhere. It doesn't gain you all that much. Thoughts? /cc @rwaldron @caridy @littledan who have been using Ecmark{up,down} in anger and possibly have experienced this issue enough to give feedback.
from ecmarkdown.
Why not auto-code-ify strings? I have been using an old version of ecmark{up,down} so I didn't actually see this feature yet.
from ecmarkdown.
Inside paragraphs you often use quotes for things that are not strings. Inside algorithms though it's almost always a real string. But e.g. check out the overzealous codeification in https://arv.github.io/ecmascript-object-observe/#solution
Other examples of where codeification would be wrong:
- http://www.ecma-international.org/ecma-262/6.0/#sec-syntactic-grammar
- http://www.ecma-international.org/ecma-262/6.0/#sec-grammar-notation (a lot)
- http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types-number-type
etc.
from ecmarkdown.
You could decide that only straight-quoted strings are auto-code-ified, and curly-quoted strings are left as-is. So in cases of overzealous codeification, change straight quotes to curlies.
from ecmarkdown.
Yeah, but then people have to type curlies (or use entities).
from ecmarkdown.
I think we should just get rid of codification of strings. Surrounding with backticks is ok. I'm confused at why it's backticks and not stars though. Why is true a value and a string code? See also #9.
from ecmarkdown.
Getting rid of codification will also make #17 easier probably.
from ecmarkdown.
Surrounding with backticks is ok.
Thats what I figured anyway? I don't think I've yet encountered the issues being discussed.
from ecmarkdown.
OK, SGTM
from ecmarkdown.
@domenic I plan to simply remove this. Will send PR.
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.