GithubHelp home page GithubHelp logo

Comments (6)

tomheon avatar tomheon commented on June 22, 2024 1

Can do!

from pandoc-templates.

davidlday avatar davidlday commented on June 22, 2024

Love it! Thanks for opening an issue. I'm absolutely open to PRs, and this would be a welcome contribution. Let me know if you have questions or need anything.

from pandoc-templates.

tomheon avatar tomheon commented on June 22, 2024

Sweet, PR is up.

from pandoc-templates.

ceruulean avatar ceruulean commented on June 22, 2024

I am a bit confused on the problem. What is the intended formatting in the source and what is the undesired result? Are you writing poetry where the formatting must be kept? Is this an issue with non-breaking hyphens?

from pandoc-templates.

davidlday avatar davidlday commented on June 22, 2024

The EM DASH is used to set off parenthetical text. Normally, it is used without spaces. However, this is language dependent. For example, in Swedish, spaces are used around the EM DASH. Line breaks can occur before and after an EM DASH. Because EM DASHes are sometimes used in pairs instead of a single quotation dash, the default behavior is not to break the line between even though not all fonts use connecting glyphs for the EM DASH.

Some languages, including Spanish, use EM DASH to set off a parenthetical, and the surrounding dashes should not be broken from the contained text. In this usage there is space on the side where it can be broken. This does not conflict with symmetrical usages, either with spaces on both sides of the em-dash or with no spaces.

Unicode Line Breaking Algorithm

I'm not sure this helps, or is even prescriptive, but it's the closest I could find to some "ruling" on breaking around em-dash.

from pandoc-templates.

davidlday avatar davidlday commented on June 22, 2024

@tomheon - sorry for the super late follow up. Looks like you closed out your PR but left this issue open. If this isn't needed anymore, would you mind closing the issue. If it is still needed, can you provide any updates? Thank you!

from pandoc-templates.

Related Issues (10)

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.