This VS Code extension provides a number of (hopefully useful) helper commands and keyboard shortcuts for writing, editing, and otherwise working with asciidoc text files.
cmd/ctrl+(i/b) for toggling italic/bold markup on selected text
cmd/ctrl+shift+l paste link around selected text (as http://example.com[selected text])
Format selected text as roman (remove formatting) (asciidoc)
** Formats selected text as roman
ISBN dashes toggle (all languages)
Adds (in the right place) or removes dashes from isbn13s
Write out numerals 1-9 (asciidoc)
Takes "George steals 1 cookie from each of the 3 jars" and makes it "George steals one cookie from each of the three jars"
Add orm:hideurl link passthrough (asciidoc)
Takes an asciidoc link (https://example.com[Anchor text]) and adds the orm:hideurl class to it as a passthrough (pass:[<a href="https://example.com" class="orm:hideurl">Anchor text</a>])
Take an asciidoc xref (e.g., <<chapter-99>>) and adds the select:labelnumber xref-datatype attribute (e.g., pass:[<a href="#chapter-99" data-type="xref" data-xrefstyle="select:labelnumber">#chapter-99</a>])
Add 'chap-num-style' xref passthrough (asciidoc)
Take an asciidoc xref (e.g., <<chapter-99>>) and adds the chap-num-style xref-datatype attribute (e.g., pass:[<a href="#chapter-99" data-type="xref" data-xrefstyle="chap-num-title">#chapter-99</a>])
Add letterbreaks and passthrough to inline code (asciidoc)
Takes a code snippet (e.g., com.oreilly.examples.this.that) and puts it in a passthrough so you can fine-tune where it breaks across a line (e.g., pass:[<code>com.oreilly.​examples.this.that</code>])
Takes a [source, lang] codeblock and rewrites it as a fenced HTML passthrough.
Known Issues
Some known issues include:
No tests on code
Documentation needs work
Release Notes
Users appreciate release notes as you update your extension.