Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding fenced div blocks to markdown reader #1791

Closed
wants to merge 4 commits into from

Conversation

mpickering
Copy link
Collaborator

This is speculative - I want to move discussion forward by having something concrete to talk about.

Closes #168

This is useful for lifting overly specific already existing parsing
functions so they can be used with more general monad stacks.
This is a speculative change which is meant to move discussion forward.
@ousia
Copy link
Contributor

ousia commented Jan 9, 2015

@mpickering, many thanks for this. It looks really awesome.

Contributing to the discussion (although I’m not sure whether this is the best place to do it): would it be possible to have also fenced spans (such as in ^span^{.class #identifier lang="grc"}?

@bpj
Copy link

bpj commented Jan 9, 2015

EDIT: I just noticed that I said much the same over at #168 about a month ago...
Anyway I actually feel strongly about this, strange as it may seem!

@mpickering: please note what @jgm said at #168 (comment). I don't think 'uparrow' makes very much sense in this context.
Note that we already have ^superscript^ and I think ^^smallcaps^^ would be nice, the 'uparrows' being iconic for 'kind of uppercase'.
(Also it so happens that since they are 'accents' all of ~ ^are shift/altgr deadkeys on my Swedish keyboard, so I must hold down shift/altgr and hit one of those keys six times to get three of those characters For some odd reason hitting the same key more than three or four times in a row is annoying. :-) So I for one would be very grateful for:::instead of^^^! I would be even more grateful if you implement [span text]{ATTRIBUTES}as well (and^^smallcaps^^` if I dare ask! :-).

@ousia
Copy link
Contributor

ousia commented Jan 9, 2015

@mpickering, I agree with both proposals from @bpj: [span]{.class #identifier lang="grc"} and ^^small caps^^.

In that case, a more consistent syntax for fenced blocks would be:

[[[ {.warning #fenced-block-1}
This is a fenced div block.

With multiple pagragraphs.
]]]

Using different starting and closing characters makes nesting easier for the end user (so that indentation isn’t mandatory for nesting).

@tarleb
Copy link
Collaborator

tarleb commented May 21, 2021

Superseded by fda0c01.

@tarleb tarleb closed this May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Syntax for divs
5 participants