GithubHelp home page GithubHelp logo

Comments (2)

tempertemper avatar tempertemper commented on July 24, 2024

Orphans in headings look a bit daft. There’s a solid way of preventing this with TypeMate, which looks for orphans and dynamically adds an   before it so that two words are wrapped, rather than just the one.

image

from www.tempertemper.net.

tempertemper avatar tempertemper commented on July 24, 2024

After some extended playing with the linked js plugin, this is not worth exploring. There's some weird behaviour in the plugin (in particular, with headings that are also links, where the &nbsp; is added to the end of the <a> when h2s are targeted).

The benefits aren't strong enough to warrant the tangle of on/off configuration that'd be needed, and even then some things wouldn't be able to have it applied (for example, applying to h2 and h2 a makes a mess, so only h2 a can be chosen, meaning 'naked' h2s don't benefit from the plugin).

Let's wait and see what happens with CSS as this definitely feels like something that should be taken care of there, rather than in the JavaScript.

from www.tempertemper.net.

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.