Comments (3)
I agree, in some cases the syntax highlighting diverges from the syntax rules of the parser and this is counterintuitive. In part the syntax rules simply changed during development. But in part this is also due to the syntax highlighting using a much simpler parsing method that has some limitations. We should probably discuss these issues in christianvoigt/language-argdown.
Apart from that I think the rule "one empty line after each block element" is intuitive and we should avoid exemptions. As I said we need this rule to allow arbitrary line breaks in statements:
[Statement]: I
am
a
statement.
Next statement.
from argdown.
I don't think so. In general we use empty lines to distinguish between block elements. <Argument 1>
works here as a heading for the argument and should work similar to other kinds of headings.
A second reason, why we should avoid this: argument titles with and without argument descriptions should behave in the same way. But if there is a description, an empty line is needed to identify the end of the description (as the description may contain single line breaks to make it more readable).
@ggbetz: What do you think?
from argdown.
I think it's OK as is. But we should reckon that this might be counter-intuitive to some users. So a medium-term todo would be to make sure that syntax highlighting in the editor points out that in
(1) P1
(2) P2 ...
the premiss-conclusion is not recognised as such (and that the above code is illegal).
Maybe syntax-highlighting of premiss-conclusion reconstructions should check whether there is a blank line before the first premiss and not color the code at all if not.
from argdown.
Related Issues (20)
- Blocks with unicode characters are rendered misaligned HOT 4
- Viz JS Map doesn't render in Firefox HOT 3
- Using Argdown in an introductory undergraduate course HOT 1
- Set output folder in config.js
- Deprecated dependencies for `@argdown/image-export`
- Groupings stop images rendering (in VSCode)
- VSCode Extension argdown.config.json: Incorrect syntax errors when using unquoted integers for relationsColors
- VSCode: Updates to argdown.config.json only affects vis.js map preview after re-opening it twice HOT 1
- Accessible default color palette
- Sandbox deployment fails
- Image not showing on node
- Unable to complete installation as described in README.md
- How do you use @argdown/core to get a JSON from a file?
- Feature request: add "∴" to default shortcodes
- Incompatible
- Submit ArgVu font to Google Fonts?
- Feature request: Collaborative Multiuser WebUI for editing (like a Google Docs or Etherpad) HOT 2
- The extension keeps restarting and does not start
- Is it possible to reference a different section in an Argdown file as a hyperlink?
- Underscore in pathname seems to breaks file detection
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 argdown.