Code Monkey home page Code Monkey logo

Comments (4)

jgm avatar jgm commented on July 20, 2024

Not really; this isn't a new block-level element, it's just the end of one that had already been started.

from djot.

rauschma avatar rauschma commented on July 20, 2024

OK. I’m torn:

  • Div blocks look nice this way.
  • The usability argument for paragraphs doesn’t change if it’s a closing block delimiter (vs. an opening block delimiter).

from djot.

jgm avatar jgm commented on July 20, 2024

Philosophically, I would almost prefer not to have any fenced constructs for this reason.

A side-marked div construct (like blockquotes, but with :) has several advantages: (a) it is local (you don't need to look potentially far back in the file to see if you're in a div), (b) nesting is completely clear, (c) it doesn't have this problem with the end fence, (d) it is more consistent, since the other block containers are non-fenced (block quotes, list items).

When I've brought this up, though, in commonmark and pandoc forums, people have consistently preferred fenced syntax. I'm still not convinced, though. This could be brought up separately on the discussion list.

from djot.

rauschma avatar rauschma commented on July 20, 2024

Interesting!

Visually, it helps that closing delimiters have to match the colon counts of opening delimiters:

::::::

Outer

:::
Inner
:::
::::::

If others are interested – this is the discussion: “Side-marked instead of fenced divs?”

from djot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.