Displaying 1 to 6 from 6 results

article-title - Extract the article title of a HTML document

  •    HTML

It's often quite hard to get the actual title of an article from a page as authors either add a bunch of trash to <title> or don't use it at all. There's also no standardized way to indicate the title of an article in the markup. This module uses some heuristics to extract it cleanly.

hfill - A speculative polyfill to use the h element in HTML

  •    Javascript

hfill lets you use the speculative h element in HTML. The h element would allow web authors to provide contextual headings without specifying an explicit level.




markdown-it-headinganchor - markdown-it plugin that adds an anchor (i

  •    Javascript

This is a markdown-it plugin that adds an anchor (i.e., <a name=\"blah\"...>) to headings. There are other plugins that add an id attribute (valeriangalliat/markdown-it-anchor) or name attribute (leff/markdown-it-named-headers) to headings, but neither of these approches work for adding anchors that are not stripped out of email.

github-slugger - :octocat: Generate a slug just like GitHub does for markdown headings.

  •    Javascript

Generate a slug just like GitHub does for markdown headings. It also ensures slugs are unique in the same way GitHub does it. The overall goal of this package is to emulate the way GitHub handles generating markdown heading anchors as close as possible. Check test/index.js for more examples.