@oxide/react-asciidoc 0.0.1-alpha.2 → 0.0.1-alpha.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/react-asciidoc.js +932 -61036
  2. package/dist/react-asciidoc.umd.cjs +12 -240
  3. package/dist/types/App.d.ts +5 -0
  4. package/dist/types/asciidoc/hooks/useGetContent.d.ts +3 -0
  5. package/dist/types/asciidoc/index.d.ts +46 -0
  6. package/dist/types/asciidoc/templates/Admonition.d.ts +6 -0
  7. package/dist/types/asciidoc/templates/Audio.d.ts +6 -0
  8. package/dist/types/asciidoc/templates/CoList.d.ts +6 -0
  9. package/dist/types/asciidoc/templates/DList.d.ts +6 -0
  10. package/dist/types/asciidoc/templates/Document.d.ts +6 -0
  11. package/dist/types/asciidoc/templates/Example.d.ts +6 -0
  12. package/dist/types/asciidoc/templates/FloatingTitle.d.ts +6 -0
  13. package/dist/types/asciidoc/templates/Image.d.ts +6 -0
  14. package/dist/types/asciidoc/templates/Listing.d.ts +6 -0
  15. package/dist/types/asciidoc/templates/Literal.d.ts +6 -0
  16. package/dist/types/asciidoc/templates/OList.d.ts +6 -0
  17. package/dist/types/asciidoc/templates/Open.d.ts +6 -0
  18. package/dist/types/asciidoc/templates/Outline.d.ts +10 -0
  19. package/dist/types/asciidoc/templates/PageBreak.d.ts +3 -0
  20. package/dist/types/asciidoc/templates/Paragraph.d.ts +6 -0
  21. package/dist/types/asciidoc/templates/Pass.d.ts +6 -0
  22. package/dist/types/asciidoc/templates/Preamble.d.ts +6 -0
  23. package/dist/types/asciidoc/templates/Quote.d.ts +6 -0
  24. package/dist/types/asciidoc/templates/Section.d.ts +6 -0
  25. package/dist/types/asciidoc/templates/Sidebar.d.ts +6 -0
  26. package/dist/types/asciidoc/templates/Table.d.ts +6 -0
  27. package/dist/types/asciidoc/templates/TableOfContents.d.ts +6 -0
  28. package/dist/types/asciidoc/templates/ThematicBreak.d.ts +3 -0
  29. package/dist/types/asciidoc/templates/UList.d.ts +6 -0
  30. package/dist/types/asciidoc/templates/Verse.d.ts +6 -0
  31. package/dist/types/asciidoc/templates/index.d.ts +26 -0
  32. package/dist/types/asciidoc/templates/util.d.ts +9 -0
  33. package/dist/types/examples/admonition.d.ts +2 -0
  34. package/dist/types/examples/audio.d.ts +2 -0
  35. package/dist/types/examples/coList.d.ts +2 -0
  36. package/dist/types/examples/customInlineMacro.d.ts +2 -0
  37. package/dist/types/examples/dList.d.ts +2 -0
  38. package/dist/types/examples/document.d.ts +2 -0
  39. package/dist/types/examples/embedded.d.ts +2 -0
  40. package/dist/types/examples/example.d.ts +2 -0
  41. package/dist/types/examples/floatingTitle.d.ts +2 -0
  42. package/dist/types/examples/image.d.ts +2 -0
  43. package/dist/types/examples/index.d.ts +40 -0
  44. package/dist/types/examples/inlineAnchor.d.ts +2 -0
  45. package/dist/types/examples/inlineBreak.d.ts +2 -0
  46. package/dist/types/examples/inlineButton.d.ts +2 -0
  47. package/dist/types/examples/inlineCallout.d.ts +2 -0
  48. package/dist/types/examples/inlineFootnote.d.ts +2 -0
  49. package/dist/types/examples/inlineImage.d.ts +2 -0
  50. package/dist/types/examples/inlineKbd.d.ts +2 -0
  51. package/dist/types/examples/inlineMenu.d.ts +2 -0
  52. package/dist/types/examples/inlineQuoted.d.ts +2 -0
  53. package/dist/types/examples/listing.d.ts +2 -0
  54. package/dist/types/examples/literal.d.ts +2 -0
  55. package/dist/types/examples/oList.d.ts +2 -0
  56. package/dist/types/examples/open.d.ts +2 -0
  57. package/dist/types/examples/outline.d.ts +2 -0
  58. package/dist/types/examples/pageBreak.d.ts +2 -0
  59. package/dist/types/examples/paragraph.d.ts +2 -0
  60. package/dist/types/examples/pass.d.ts +2 -0
  61. package/dist/types/examples/preamble.d.ts +2 -0
  62. package/dist/types/examples/quote.d.ts +2 -0
  63. package/dist/types/examples/section.d.ts +2 -0
  64. package/dist/types/examples/sidebar.d.ts +2 -0
  65. package/dist/types/examples/stem.d.ts +2 -0
  66. package/dist/types/examples/table.d.ts +2 -0
  67. package/dist/types/examples/thematicBreak.d.ts +2 -0
  68. package/dist/types/examples/toc.d.ts +2 -0
  69. package/dist/types/examples/uList.d.ts +2 -0
  70. package/dist/types/examples/verse.d.ts +2 -0
  71. package/dist/types/examples/video.d.ts +2 -0
  72. package/dist/types/examples/writersGuide.d.ts +2 -0
  73. package/package.json +11 -8
  74. package/dist/index.d.ts +0 -9
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import './asciidoc.css';
3
+ import './test.css';
4
+ declare function App(): JSX.Element;
5
+ export default App;
@@ -0,0 +1,3 @@
1
+ import type { AbstractBlock, Block, Table } from '@asciidoctor/core';
2
+ declare const useGetContent: (node: Block | AbstractBlock | Table.Cell) => string;
3
+ export default useGetContent;
@@ -0,0 +1,46 @@
1
+ /// <reference types="react" />
2
+ import asciidoctor from '@asciidoctor/core';
3
+ import type { AbstractBlock } from '@asciidoctor/core';
4
+ import type * as AdocTypes from '@asciidoctor/core';
5
+ import useGetContent from './hooks/useGetContent';
6
+ import { Admonition, Audio, CoList, DList, Document, Example, FloatingTitle, Image, Listing, Literal, OList, Open, PageBreak, Paragraph, Pass, Preamble, Quote, Section, Sidebar, Table, TableOfContents, ThematicBreak, UList, Verse } from './templates';
7
+ import { CaptionedTitle, Title, getRole } from './templates/util';
8
+ declare type Overrides = {
9
+ admonition?: typeof Admonition;
10
+ audio?: typeof Audio;
11
+ colist?: typeof CoList;
12
+ dlist?: typeof DList;
13
+ example?: typeof Example;
14
+ floating_title?: typeof FloatingTitle;
15
+ image?: typeof Image;
16
+ listing?: typeof Listing;
17
+ literal?: typeof Literal;
18
+ olist?: typeof OList;
19
+ open?: typeof Open;
20
+ page_break?: typeof PageBreak;
21
+ paragraph?: typeof Paragraph;
22
+ pass?: typeof Pass;
23
+ preamble?: typeof Preamble;
24
+ quote?: typeof Quote;
25
+ section?: typeof Section;
26
+ sidebar?: typeof Sidebar;
27
+ table?: typeof Table;
28
+ toc?: typeof TableOfContents;
29
+ thematic_break?: typeof ThematicBreak;
30
+ ulist?: typeof UList;
31
+ verse?: typeof Verse;
32
+ };
33
+ export declare type Options = {
34
+ overrides?: Overrides;
35
+ customDocument?: typeof Document;
36
+ };
37
+ declare const Asciidoc: ({ content, options, }: {
38
+ content: AdocTypes.Document;
39
+ options?: Options | undefined;
40
+ }) => JSX.Element;
41
+ declare const Content: ({ blocks }: {
42
+ blocks: AbstractBlock[];
43
+ }) => JSX.Element;
44
+ export default Asciidoc;
45
+ export { asciidoctor, Content, useGetContent, Title, getRole, CaptionedTitle, AdocTypes };
46
+ export * from './templates';
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Block } from '@asciidoctor/core';
3
+ declare const Admonition: ({ node }: {
4
+ node: Block;
5
+ }) => JSX.Element;
6
+ export default Admonition;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Block } from '@asciidoctor/core';
3
+ declare const Audio: ({ node }: {
4
+ node: Block;
5
+ }) => JSX.Element;
6
+ export default Audio;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { List } from '@asciidoctor/core';
3
+ declare const CoList: ({ node }: {
4
+ node: List;
5
+ }) => JSX.Element;
6
+ export default CoList;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { List } from '@asciidoctor/core';
3
+ declare const DList: ({ node }: {
4
+ node: List;
5
+ }) => JSX.Element;
6
+ export default DList;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Document as DocumentType } from '@asciidoctor/core';
3
+ declare const Document: ({ document }: {
4
+ document: DocumentType;
5
+ }) => JSX.Element;
6
+ export default Document;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Block } from '@asciidoctor/core';
3
+ declare const Example: ({ node }: {
4
+ node: Block;
5
+ }) => JSX.Element;
6
+ export default Example;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Block } from '@asciidoctor/core';
3
+ declare const FloatingTitle: ({ node }: {
4
+ node: Block;
5
+ }) => JSX.Element;
6
+ export default FloatingTitle;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Block } from '@asciidoctor/core';
3
+ declare const Image: ({ node }: {
4
+ node: Block;
5
+ }) => JSX.Element;
6
+ export default Image;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Block } from '@asciidoctor/core';
3
+ declare const Listing: ({ node }: {
4
+ node: Block;
5
+ }) => JSX.Element;
6
+ export default Listing;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Block } from '@asciidoctor/core';
3
+ declare const Literal: ({ node }: {
4
+ node: Block;
5
+ }) => JSX.Element;
6
+ export default Literal;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { List } from '@asciidoctor/core';
3
+ declare const OList: ({ node }: {
4
+ node: List;
5
+ }) => JSX.Element;
6
+ export default OList;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Block } from '@asciidoctor/core';
3
+ declare const Open: ({ node }: {
4
+ node: Block;
5
+ }) => JSX.Element;
6
+ export default Open;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { AbstractBlock } from '@asciidoctor/core';
3
+ declare const Outline: ({ node, opts, }: {
4
+ node: AbstractBlock;
5
+ opts?: {
6
+ tocLevels?: number | undefined;
7
+ sectNumLevels?: number | undefined;
8
+ } | undefined;
9
+ }) => JSX.Element | null;
10
+ export default Outline;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const PageBreak: () => JSX.Element;
3
+ export default PageBreak;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Block } from '@asciidoctor/core';
3
+ declare const Paragraph: ({ node }: {
4
+ node: Block;
5
+ }) => JSX.Element;
6
+ export default Paragraph;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { AbstractBlock } from '@asciidoctor/core';
3
+ declare const Pass: ({ node }: {
4
+ node: AbstractBlock;
5
+ }) => JSX.Element;
6
+ export default Pass;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { AbstractBlock } from '@asciidoctor/core';
3
+ declare const Preamble: ({ node }: {
4
+ node: AbstractBlock;
5
+ }) => JSX.Element;
6
+ export default Preamble;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Block } from '@asciidoctor/core';
3
+ declare const Quote: ({ node }: {
4
+ node: Block;
5
+ }) => JSX.Element;
6
+ export default Quote;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Section as SectionType } from '@asciidoctor/core';
3
+ declare const Section: ({ node }: {
4
+ node: SectionType;
5
+ }) => JSX.Element;
6
+ export default Section;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Block } from '@asciidoctor/core';
3
+ declare const Sidebar: ({ node }: {
4
+ node: Block;
5
+ }) => JSX.Element;
6
+ export default Sidebar;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Table as TableType } from '@asciidoctor/core';
3
+ declare const Table: ({ node }: {
4
+ node: TableType;
5
+ }) => JSX.Element;
6
+ export default Table;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Block } from '@asciidoctor/core';
3
+ declare const TableOfContents: ({ node }: {
4
+ node: Block;
5
+ }) => JSX.Element | null;
6
+ export default TableOfContents;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ThematicBreak: () => JSX.Element;
3
+ export default ThematicBreak;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { List } from '@asciidoctor/core';
3
+ declare const UList: ({ node }: {
4
+ node: List;
5
+ }) => JSX.Element;
6
+ export default UList;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Block } from '@asciidoctor/core';
3
+ declare const Verse: ({ node }: {
4
+ node: Block;
5
+ }) => JSX.Element;
6
+ export default Verse;
@@ -0,0 +1,26 @@
1
+ import Admonition from './Admonition';
2
+ import Audio from './Audio';
3
+ import CoList from './CoList';
4
+ import DList from './DList';
5
+ import Document from './Document';
6
+ import Example from './Example';
7
+ import FloatingTitle from './FloatingTitle';
8
+ import Image from './Image';
9
+ import Listing from './Listing';
10
+ import Literal from './Literal';
11
+ import OList from './OList';
12
+ import Open from './Open';
13
+ import Outline from './Outline';
14
+ import PageBreak from './PageBreak';
15
+ import Paragraph from './Paragraph';
16
+ import Pass from './Pass';
17
+ import Preamble from './Preamble';
18
+ import Quote from './Quote';
19
+ import Section from './Section';
20
+ import Sidebar from './Sidebar';
21
+ import Table from './Table';
22
+ import TableOfContents from './TableOfContents';
23
+ import ThematicBreak from './ThematicBreak';
24
+ import UList from './UList';
25
+ import Verse from './Verse';
26
+ export { Audio, Admonition, CoList, Document, DList, Example, Outline, FloatingTitle, Listing, Literal, Image, OList, Open, PageBreak, Pass, Paragraph, Preamble, Section, Sidebar, Table, ThematicBreak, UList, Quote, Verse, TableOfContents, };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { AbstractBlock, Block, List } from '@asciidoctor/core';
3
+ export declare const Title: ({ node }: {
4
+ node: AbstractBlock | Block | List;
5
+ }) => JSX.Element | null;
6
+ export declare const CaptionedTitle: ({ node }: {
7
+ node: Block | Block | List;
8
+ }) => JSX.Element | null;
9
+ export declare const getRole: (node: AbstractBlock | Block | List) => string | undefined;
@@ -0,0 +1,2 @@
1
+ export default admonition;
2
+ declare const admonition: "\n// .note\nNOTE: This is a note.\n\n// .note-with-title\n.Title of note\nNOTE: This is a note with title.\n\n// .note-with-id-and-role\n[#note-1.yellow]\nNOTE: This is a note with id and role.\n\n// .note-block\n[NOTE]\n====\nThis is a note with complex content.\n\n* It contains a list.\n====\n\n// .tip\nTIP: This is a tip.\n\n// .tip-with-title\n.Title of tip\nTIP: This is a tip with title.\n\n// .tip-with-id-and-role\n[#tip-1.blue]\nTIP: This is a tip with id and role.\n\n// .tip-block\n[TIP]\n====\nThis is a tip with complex content.\n\n* It contains a list.\n====\n\n// .important\nIMPORTANT: This is an important notice.\n\n// .important-with-title\n.Title of important notice\nIMPORTANT: This is an important notice with title.\n\n// .important-with-id-and-role\n[#important-1.red]\nIMPORTANT: This is an important notice with id and role.\n\n// .important-block\n[IMPORTANT]\n====\nThis is an important notice with complex content.\n\n* It contains a list.\n====\n\n// .caution\nCAUTION: This is a caution.\n\n// .caution-with-title\n.Title of caution\nCAUTION: This is a caution with title.\n\n// .caution-with-id-and-role\n[#caution-1.red]\nCAUTION: This is a caution with id and role.\n\n// .caution-block\n[CAUTION]\n====\nThis is a caution with complex content.\n\n* It contains a list.\n====\n\n// .warning\nWARNING: This is a warning.\n\n// .warning-with-title\n.Title of warning\nWARNING: This is a warning with title.\n\n// .warning-with-id-and-role\n[#warning-1.red]\nWARNING: This is a warning with id and role.\n\n// .warning-block\n[WARNING]\n====\nThis is a warning with complex content.\n\n* It contains a list.\n====";
@@ -0,0 +1,2 @@
1
+ export default audio;
2
+ declare const audio: "\n// .basic\naudio::ocean_waves.mp3[]\n\n// .with-all-options\naudio::ocean_waves.mp3[options=\"autoplay, nocontrols, loop\"]\n\n// .with-title\n.Waves!\naudio::ocean_waves.mp3[]\n\n// .with-id-and-role\n[#ocean.wave]\naudio::ocean_waves.mp3[]\n";
@@ -0,0 +1,2 @@
1
+ export default coList;
2
+ declare const coList: "\n// .basic\n// This example should assert only callouts list below the code listing.\n// For callouts inside the listing is responsible inline_callout.\n[source, ruby]\n----\nrequire 'sinatra' // <1>\n\nget '/hi' do # <2>\n \"Hello World!\" ;; <3>\nend\n----\n<1> Library import\n<2> URL mapping\n<3> Content for response\n\n// .with-title\n// This example should assert only callouts list below the code listing.\n// For callouts inside the listing is responsible inline_callout.\n[source, ruby]\n----\nrequire 'sinatra' // <1>\n\nget '/hi' do # <2>\n \"Hello World!\" ;; <3>\nend\n----\n.Description\n<1> Library import\n<2> URL mapping\n<3> Content for response\n\n// .with-id-and-role\n// This example should assert only callouts list below the code listing.\n// For callouts inside the listing is responsible inline_callout.\n[source, ruby]\n----\nrequire 'sinatra' // <1>\n\nget '/hi' do # <2>\n \"Hello World!\" ;; <3>\nend\n----\n[#call.sinatra]\n<1> Library import\n<2> URL mapping\n<3> Content for response\n";
@@ -0,0 +1,2 @@
1
+ export default customInlineMacro;
2
+ declare const customInlineMacro: "\nemoticon:wink[]\nemoticon:grin[]\nemoticon:x[]\n";
@@ -0,0 +1,2 @@
1
+ export default dList;
2
+ declare const dList: "\n// .basic\nAsciidoctor:: An implementation of the AsciiDoc processor in Ruby.\nAsciidoc::\n A text document format for writing notes, documentation, articles, books,\n ebooks, slideshows, web pages, man pages and blogs.\n\n// .basic-block\nAbout::\n* An implementation of the AsciiDoc processor in Ruby.\n* Fast text processor and publishing toolchain.\n\nAuthors::\nAsciidoctor is lead by Dan Allen and Sarah White and has received contributions\nfrom many other individuals in Asciidoctor’s awesome community.\n+\nAsciiDoc was started by Stuart Rackham.\n\n// .basic-missing-description\nDefinition without a description::\n\n// .basic-with-title\n.Asciidoctor\nLicense:: MIT\n\n// .basic-with-id-and-role\n[#licenses.open]\nLicense:: MIT\n\n// .qanda\n[qanda]\nWhat is Asciidoctor?::\n An implementation of the AsciiDoc processor in Ruby.\nWhat is the answer to the Ultimate Question?:: 42\n\n// .qanda-block\n[qanda]\nWhat is Asciidoctor?::\n* An implementation of the AsciiDoc processor in Ruby.\n* Fast text processor and publishing toolchain.\n\nWho is behind Asciidoctor?::\nAsciidoctor is lead by Dan Allen and Sarah White and has received contributions\nfrom many other individuals in Asciidoctor’s awesome community.\n+\nAsciiDoc was started by Stuart Rackham.\n\n// .qanda-missing-answer\n[qanda]\nWho knows the answer?::\n\n// .qanda-with-title\n[qanda]\n.The most important questions\nWhat is the answer to the Ultimate Question?:: 42\n\n// .qanda-with-id-and-role\n[qanda, id=faq, role=galaxy]\nWhat is the answer to the Ultimate Question?:: 42\n\n// .horizontal\n[horizontal]\nHard drive:: Permanent storage for operating system and/or user files.\nRAM:: Temporarily stores information the CPU uses during operation.\n\n// .horizontal-with-dimensions\n[horizontal, labelwidth=\"20\", itemwidth=\"50%\"]\nHard drive:: Permanent storage for operating system and/or user files.\nRAM:: Temporarily stores information the CPU uses during operation.\n\n// .horizontal-with-title\n[horizontal]\n.Computer terminology for noobs\nHard drive:: Permanent storage for operating system and/or user files.\nRAM:: Temporarily stores information the CPU uses during operation.\n\n// .horizontal-with-id-and-role\n[horizontal, id=computer, role=terms]\nHard drive:: Permanent storage for operating system and/or user files.\nRAM:: Temporarily stores information the CPU uses during operation.\n\n// .mixed\nOperating Systems::\n Linux:::\n . Fedora\n * Desktop\n . Ubuntu\n * Desktop\n * Server\n BSD:::\n . FreeBSD\n . NetBSD\n\nCloud Providers::\n PaaS:::\n . OpenShift\n . CloudBees\n IaaS:::\n . Amazon EC2\n . Rackspace\n";
@@ -0,0 +1,2 @@
1
+ export default document;
2
+ declare const document: string[];
@@ -0,0 +1,2 @@
1
+ export default embedded;
2
+ declare const embedded: string[];
@@ -0,0 +1,2 @@
1
+ export default example;
2
+ declare const example: "\n// .basic\n====\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor\nincididunt ut labore et dolore magna aliqua.\n====\n\n// .with-title\n.Sample document\n====\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor\nincididunt ut labore et dolore magna aliqua.\n\nThe document header is useful, but not required.\n====\n\n// .with-id-and-role\n[#lorem.ipsum]\n====\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor\nincididunt ut labore et dolore magna aliqua.\n====\n";
@@ -0,0 +1,2 @@
1
+ export default floatingTitle;
2
+ declare const floatingTitle: "\n// .level1\n[discrete]\n== Discrete Title Level 1\n\n// .level2\n[discrete]\n=== Discrete Title Level 2\n\n// .level3\n[discrete]\n==== Discrete Title Level 3\n\n// .level4\n[discrete]\n===== Discrete Title Level 4\n\n// .level5\n[discrete]\n====== Discrete Title Level 5\n\n// .with-custom-id\n[discrete, id=flying]\n== Discrete Title Level 1\n\n// .with-roles\n[discrete.flying.circus]\n=== Discrete Title Level 2\n";
@@ -0,0 +1,2 @@
1
+ export default image;
2
+ declare const image: "\n// .basic\nimage::sunset.jpg[]\n\n// .with-alt-text\nimage::sunset.jpg[Shining sun]\n\n// .with-align\nimage::sunset.jpg[align=\"center\"]\n\n// .with-float\nimage::sunset.jpg[float=\"right\"]\n\n// .with-dimensions\nimage::sunset.jpg[Shining sun, 300, 200]\n\n// .with-link\nimage::sunset.jpg[link=\"http://www.flickr.com/photos/javh/5448336655\"]\n\n// .with-title\n.A mountain sunset\nimage::sunset.jpg[]\n\n// .with-id\n[[img-sunset]]\nimage::sunset.jpg[]\n\n// .with-roles\nimage::sunset.jpg[role=\"right text-center\"]\n";
@@ -0,0 +1,40 @@
1
+ import audio from "./audio";
2
+ import admonition from "./admonition";
3
+ import coList from "./coList";
4
+ import customInlineMacro from "./customInlineMacro";
5
+ import dList from "./dList";
6
+ import document from "./document";
7
+ import embedded from "./embedded";
8
+ import example from "./example";
9
+ import floatingTitle from "./floatingTitle";
10
+ import image from "./image";
11
+ import inlineAnchor from "./inlineAnchor";
12
+ import inlineBreak from "./inlineBreak";
13
+ import inlineButton from "./inlineButton";
14
+ import inlineCallout from "./inlineCallout";
15
+ import inlineFootnote from "./inlineFootnote";
16
+ import inlineImage from "./inlineImage";
17
+ import inlineKbd from "./inlineKbd";
18
+ import inlineMenu from "./inlineMenu";
19
+ import inlineQuoted from "./inlineQuoted";
20
+ import listing from "./listing";
21
+ import literal from "./literal";
22
+ import oList from "./oList";
23
+ import open from "./open";
24
+ import outline from "./outline";
25
+ import pageBreak from "./pageBreak";
26
+ import paragraph from "./paragraph";
27
+ import pass from "./pass";
28
+ import preamble from "./preamble";
29
+ import quote from "./quote";
30
+ import section from "./section";
31
+ import sidebar from "./sidebar";
32
+ import stem from "./stem";
33
+ import table from "./table";
34
+ import thematicBreak from "./thematicBreak";
35
+ import toc from "./toc";
36
+ import uList from "./uList";
37
+ import verse from "./verse";
38
+ import video from "./video";
39
+ import writersGuide from "./writersGuide";
40
+ export { audio, admonition, coList, customInlineMacro, dList, document, embedded, example, floatingTitle, image, inlineAnchor, inlineBreak, inlineButton, inlineCallout, inlineFootnote, inlineImage, inlineKbd, inlineMenu, inlineQuoted, listing, literal, oList, open, outline, pageBreak, paragraph, pass, preamble, quote, section, sidebar, stem, table, thematicBreak, toc, uList, verse, video, writersGuide };
@@ -0,0 +1,2 @@
1
+ export default inlineAnchor;
2
+ declare const inlineAnchor: string[];
@@ -0,0 +1,2 @@
1
+ export default inlineBreak;
2
+ declare const inlineBreak: "\n// .plus-sign\nRubies are red, +\nTopazes are blue.\n\n// .hardbreaks\n[%hardbreaks]\nRuby is red.\nJava is black.\n";
@@ -0,0 +1,2 @@
1
+ export default inlineButton;
2
+ declare const inlineButton: "\n// .basic\n:experimental:\nbtn:[OK]\n";
@@ -0,0 +1,2 @@
1
+ export default inlineCallout;
2
+ declare const inlineCallout: "\n// .basic\n[source]\n----\n\"Hello world!\" // <1>\n----\n";
@@ -0,0 +1,2 @@
1
+ export default inlineFootnote;
2
+ declare const inlineFootnote: "\n// .basic\nApocalyptic party footnote:[The double hail-and-rainbow level makes my toes tingle.]\n\n// .xref\nA bold statement.footnote:disclaimer[Opinions are my own.]\nAnother outrageous statement\n\n// .xref-unresolved\nA bold statement.footnote:disclaimer[]\n";
@@ -0,0 +1,2 @@
1
+ export default inlineImage;
2
+ declare const inlineImage: "\n// .image\nimage:linux.svg[]\n\n// .image-with-alt-text\nimage:linux.svg[Tux]\n\n// .image-with-dimensions\nimage:linux.svg[Tux, 25, 35]\n\n// .image-with-float\nimage:linux.svg[float=\"right\"]\n\n// .image-with-link\nimage:linux.svg[link=\"http://inkscape.org/doc/examples/tux.svg\"]\n\n// .image-with-role\nimage:linux.svg[role=\"black\"]\n\n// .icon\n:icons:\nicon:tags[]\n\n// .icon-with-dimensions\n:icons:\nicon:tags[height=25, width=35]\n\n// .icon-with-float\n:icons:\nicon:heart[float=\"right\"]\n\n// .icon-with-link\n:icons:\nicon:download[link=\"http://rubygems.org/downloads/asciidoctor-1.5.2.gem\"]\n\n// .icon-with-title\n:icons:\nicon:heart[title=\"I <3 Asciidoctor\"]\n\n// .icon-with-role\n:icons:\nicon:tags[role=\"blue\"]\n\n// .icon-no-icons\nicon:tags[]\n";
@@ -0,0 +1,2 @@
1
+ export default inlineKbd;
2
+ declare const inlineKbd: "\n// .basic\n:experimental:\nkbd:[F11]\n\n// .keyseq\n:experimental:\nkbd:[Ctrl+Shift+N]\n";
@@ -0,0 +1,2 @@
1
+ export default inlineMenu;
2
+ declare const inlineMenu: "\n// .menu\n:experimental:\nmenu:File[]\n\n// .menuitem\n:experimental:\nmenu:File[Save]\n\n// .submenu\n:experimental:\nmenu:View[Zoom > Reset]\n";
@@ -0,0 +1,2 @@
1
+ export default inlineQuoted;
2
+ declare const inlineQuoted: "\n// .basic\n[why]#chunky bacon#\n\n// .emphasis\n_chunky bacon_\n\n// .emphasis-with-role\n[why]_chunky bacon_\n\n// .strong\n*chunky bacon*\n\n// .strong-with-role\n[why]*chunky bacon*\n\n// .monospaced\n`hello world!`\n\n// .monospaced-with-role\n[why]`hello world!`\n\n// .superscript\n^super^chunky bacon\n\n// .superscript-with-role\n[why]^super^chunky bacon\n\n// .subscript\n~sub~chunky bacon\n\n// .subscript-with-role\n[why]~sub~chunky bacon\n\n// .mark\n#chunky bacon#\n\n// .double\n\"`chunky bacon`\"\n\n// .double-with-role\n[why]\"`chunky bacon`\"\n\n// .single\n'`chunky bacon`'\n\n// .single-with-role\n[why]'`chunky bacon`'\n\n// .asciimath\nasciimath:[sqrt(4) = 2]\n\n// .latexmath\nlatexmath:[C = alpha + \beta Y^{gamma} + epsilon]\n\n// .with-id\n[#why]_chunky bacon_\n\n// .mixed-monospace-bold-italic\n`*_monospace bold italic phrase_*` and le``**__tt__**``ers\n";
@@ -0,0 +1,2 @@
1
+ export default listing;
2
+ declare const listing: "\n// // .basic\n// ----\n// echo -n \"Please enter your name: \"\n// read name\n// echo \"Hello, $name!\"\n// ----\n//\n// // .basic-with-title\n// .Reading user input\n// ----\n// echo -n \"Please enter your name: \"\n// read name\n// echo \"Hello, $name!\"\n// ----\n//\n// // .basic-nowrap\n// [options=\"nowrap\"]\n// ----\n// ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"\n// ----\n//\n// // .basic-with-id-and-role\n// [#code.example]\n// ----\n// echo -n \"Please enter your name: \"\n// read name\n// echo \"Hello, $name!\"\n// ----\n//\n// // .source\n// [source]\n// ----\n// 5.times do\n// print \"Odelay!\"\n// end\n// ----\n//\n// // .source-with-title\n// [source]\n// .Odelay!\n// ----\n// 5.times do\n// print \"Odelay!\"\n// end\n// ----\n//\n// // .source-with-language\n// [source, ruby]\n// ----\n// 5.times do\n// print \"Odelay!\"\n// end\n// ----\n//\n// // .source-nowrap\n// [source, java, options=\"nowrap\"]\n// ----\n// public class ApplicationConfigurationProvider extends HttpConfigurationProvider {\n//\n// public Configuration getConfiguration(ServletContext context) {\n// return ConfigurationBuilder.begin()\n// .addRule()\n// .when(Direction.isInbound().and(Path.matches(\"/{path}\")))\n// .perform(Log.message(Level.INFO, \"Client requested path: {path}\"))\n// .where(\"path\").matches(\".*\");\n// }\n// }\n// ----\n// ";
@@ -0,0 +1,2 @@
1
+ export default literal;
2
+ declare const literal: "\n// .basic\n....\nerror: The requested operation returned error: 1954 Forbidden search for defensive operations manual\nabsolutely fatal: operation initiation lost in the dodecahedron of doom\nwould you like to die again? y/n\n....\n\n// .with-title\n.Die again?\n....\nerror: The requested operation returned error: 1954 Forbidden search for defensive operations manual\nabsolutely fatal: operation initiation lost in the dodecahedron of doom\nwould you like to die again? y/n\n....\n\n// .with-id-and-role\n[#error.fatal]\n....\nerror: The requested operation returned error: 1954 Forbidden search for defensive operations manual\nabsolutely fatal: operation initiation lost in the dodecahedron of doom\nwould you like to die again? y/n\n....\n\n// .nowrap\n[options=\"nowrap\"]\n....\nerror: The requested operation returned error: 1954 Forbidden search for defensive operations manual\nabsolutely fatal: operation initiation lost in the dodecahedron of doom\nwould you like to die again? y/n\n....\n";
@@ -0,0 +1,2 @@
1
+ export default oList;
2
+ declare const oList: "\n// .basic\n. Step 1\n. Step 2\n. Step 3\n\n// .with-start\n[start=6]\n. Step 1\n. Step 2\n. Step 3\n\n// .with-reversed\n[%reversed]\n. Step 1\n. Step 2\n. Step 3\n\n// .with-numeration-styles\n[decimal]\n. level 1\n[upperalpha]\n.. level 2\n[loweralpha]\n... level 3\n[lowerroman]\n.... level 4\n[lowergreek]\n..... level 5\n\n// .with-title\n.Steps\n. Step 1\n. Step 2\n. Step 3\n\n// .with-id-and-role\n[#steps.green]\n. Step 1\n. Step 2\n. Step 3\n\n// .max-nesting\n. level 1\n.. level 2\n... level 3\n.... level 4\n..... level 5\n.. level 2\n\n// .complex-content\n. Every list item has at least one paragraph of content,\n which may be wrapped, even using a hanging indent.\n+\nAdditional paragraphs or blocks are adjoined by putting\na list continuation on a line adjacent to both blocks.\n+\nlist continuation:: a plus sign (`{plus}`) on a line by itself\n\n. A literal paragraph does not require a list continuation.\n\n $ gem install asciidoctor\n";
@@ -0,0 +1,2 @@
1
+ export default open;
2
+ declare const open: "\n// .basic\n--\nAn open block can be an anonymous container,\nor it can masquerade as any other block.\n--\n\n// .basic-with-title\n.An open block\n--\nAn open block can be an anonymous container,\nor it can masquerade as any other block.\n--\n\n// .basic-with-id-and-role\n[#open.example]\n--\nAn open block can be an anonymous container,\nor it can masquerade as any other block.\n--\n\n// .abstract\n[abstract]\n--\nThis is an abstract quote block.\n--\n\n// .abstract-with-title\n[abstract]\n.Abstract title is abstract\n--\nThis is an abstract quote block.\nWho knows what it really means?\n--\n\n// .abstract-with-id-and-role\n[abstract, id=\"open\", role=\"example\"]\n--\nThis is an abstract quote block.\nWho knows what it really means?\n--\n";
@@ -0,0 +1,2 @@
1
+ export default outline;
2
+ declare const outline: string[];
@@ -0,0 +1,2 @@
1
+ export default pageBreak;
2
+ declare const pageBreak: "\n// .basic\nText on the first page\n\n<<<\n\nwas breaked!\n";
@@ -0,0 +1,2 @@
1
+ export default paragraph;
2
+ declare const paragraph: "\n// .basic\nParagraphs don't require any special markup in AsciiDoc.\nA paragraph is just one or more lines of consecutive text.\n\nTo begin a new paragraph, separate it by at least one blank line.\n\n// .with-title\n.Paragraphs\nParagraphs don't require any special markup in AsciiDoc.\nA paragraph is just one or more lines of consecutive text.\n\nTo begin a new paragraph, separate it by at least one blank line.\n\n// .with-id-and-role\n[#para-1.red]\nParagraphs don't require any special markup in AsciiDoc.\nA paragraph is just one or more lines of consecutive text.\n";
@@ -0,0 +1,2 @@
1
+ export default pass;
2
+ declare const pass: "\n// .basic\n++++\n<p>Allons-y!</p>\nimage:tiger.png[]\n++++\n";
@@ -0,0 +1,2 @@
1
+ export default preamble;
2
+ declare const preamble: string[];
@@ -0,0 +1,2 @@
1
+ export default quote;
2
+ declare const quote: "\n// .basic\n[quote]\nFour score and seven years ago our fathers brought forth\non this continent a new nation...\n\n// .with-attribution\n[quote, Albert Einstein]\nA person who never made a mistake never tried anything new.\n\n// .with-attribution-and-citetitle\n[quote, Captain James T. Kirk, Star Trek IV: The Voyage Home]\nEverybody remember where we parked.\n\n// .with-title\n.After landing the cloaked Klingon bird of prey in Golden Gate park:\n[quote]\nEverybody remember where we parked.\n\n// .with-id-and-role\n[quote, id=\"parking\", role=\"startrek\"]\nEverybody remember where we parked.\n\n// .block\n____\nDennis: Come and see the violence inherent in the system. Help! Help! I'm being repressed!\n\nKing Arthur: Bloody peasant!\n\nDennis: Oh, what a giveaway! Did you hear that? Did you hear that, eh? That's what I'm on about! Did you see him repressing me? You saw him, Didn't you?\n____\n";
@@ -0,0 +1,2 @@
1
+ export default section;
2
+ declare const section: string[];
@@ -0,0 +1,2 @@
1
+ export default sidebar;
2
+ declare const sidebar: "\n// .basic\n****\nAsciiDoc was first released in Nov 2002 by Stuart Rackham.\nIt was designed from the start to be a shorthand syntax\nfor producing professional documents like DocBook and LaTeX.\n****\n\n// .with-title\n.AsciiDoc history\n****\nAsciiDoc was first released in Nov 2002 by Stuart Rackham.\nIt was designed from the start to be a shorthand syntax\nfor producing professional documents like DocBook and LaTeX.\n****\n\n// .with-id-and-role\n[#origin.center]\n****\nAsciiDoc was first released in Nov 2002 by Stuart Rackham.\nIt was designed from the start to be a shorthand syntax\nfor producing professional documents like DocBook and LaTeX.\n****\n";
@@ -0,0 +1,2 @@
1
+ export default stem;
2
+ declare const stem: string[];
@@ -0,0 +1,2 @@
1
+ export default table;
2
+ declare const table: "\n// .basic\n|===\n| Cell in column 1, row 1 | Cell in column 2, row 1\n| Cell in column 1, row 2 | Cell in column 2, row 2\n|===\n\n// .with-frame-sides\n[frame=sides]\n|===\n| Cell in column 1, row 1 | Cell in column 2, row 1\n|===\n\n// .with-grid-cols\n[grid=cols]\n|===\n| Cell in column 1, row 1 | Cell in column 2, row 1\n|===\n\n// .with-float\n[float=left]\n|===\n| Cell in column 1, row 1 | Cell in column 2, row 1\n|===\n\n// .with-width\n[width=80]\n|===\n| Cell in column 1, row 1 | Cell in column 2, row 1\n|===\n\n// .with-autowidth\n[options=\"autowidth\"]\n|===\n| Cell in column 1, row 1 | Cell in column 2, row 1\n|===\n\n// .with-autowidth-and-width\n[options=\"autowidth\", width=80]\n|===\n| Cell in column 1, row 1 | Cell in column 2, row 1\n|===\n\n// .with-title\n.Table FTW!\n|===\n| Cell in column 1, row 1 | Cell in column 2, row 1\n|===\n\n// .with-id-and-role\n[#tabular.center]\n|===\n| Cell in column 1, row 1 | Cell in column 2, row 1\n|===\n\n// .with-header\n[options=\"header\"]\n|===\n| Name of Column 1 | Name of Column 2\n\n| Cell in column 1, row 1 | Cell in column 2, row 1\n| Cell in column 1, row 2 | Cell in column 2, row 2\n|===\n\n// .with-footer\n[options=\"footer\"]\n|===\n| Cell in column 1, row 1 | Cell in column 2, row 1\n| Cell in column 1, row 2 | Cell in column 2, row 2\n| Footer in column 1, row 3 | Footer in column 2, row 3\n|===\n\n// .with-cols-width\n[cols=\"50,20,30\"]\n|===\n|Cell in column 1, row 1\n|Cell in column 2, row 1\n|Cell in column 3, row 1\n|===\n\n// .with-cols-halign\n[cols=\"<,^,>\"]\n|===\n|Cell in column 1, row 1\n|Cell in column 2, row 1\n|Cell in column 3, row 1\n|===\n\n// .with-cols-valign\n[cols=\".<,.^,.>\"]\n|===\n|Cell in column 1, row 1\n|Cell in column 2, row 1\n|Cell in column 3, row 1\n|===\n\n// .with-cols-styles\n[cols=\"a,e,h,l,m,s\"]\n|===\n|image::sunset.jpg[AsciiDoc content]\n|Emphasized text\n|Styled like a header\n|Literal block\n|Monospaced text\n|Strong text\n|===\n\n// .colspan\n|===\n\n| Cell in column 1, row 1 | Cell in column 2, row 1 | Cell in column 3, row 1\n\n2+|Content in a single cell that spans columns 1 and 3 | Cell in column 3, row 1\n\n|===\n\n// .rowspan\n|===\n\n| Cell in column 1, row 1 | Cell in column 2, row 1 | Cell in column 3, row 1\n\n.2+|Content in a single cell that spans rows 2 and 3\n\n| Cell in column 2, row 2 | Cell in column 3, row 2\n\n| Cell in column 2, row 3 | Cell in column 3, row 3\n|===\n\n// .cell-with-paragraphs\n|===\n\n|Single paragraph on row 1\n\n|First paragraph on row 2\n\nSecond paragraph on row 2\n|===\n\n// .aligns-per-cell\n[cols=\"3\"]\n|===\n^|Prefix the +{vbar}+ with +{caret}+ to center content horizontally\n<|Prefix the +{vbar}+ with +<+ to align the content to the left horizontally\n>|Prefix the +{vbar}+ with +>+ to align the content to the right horizontally\n\n.^|Prefix the +{vbar}+ with a +.+ and +{caret}+ to center the content in the cell vertically\n.<|Prefix the +{vbar}+ with a +.+ and +<+ to align the content to the top of the cell\n.>|Prefix the +{vbar}+ with a +.+ and +>+ to align the content to the bottom of the cell\n\n3+^.^|This content spans three columns (+3{plus}+) and is centered horizontally (+{caret}+) and vertically (+.{caret}+) within the cell.\n\n|===\n\n// .insane-cells-formatting\n// seriously, this isn't readable anymore ;)\n|===\n\n2*>m|This content is duplicated across two columns.\n\nIt is aligned right horizontally.\n\nAnd it is monospaced.\n\n.3+^.>s|This cell spans 3 rows. The content is centered horizontally, aligned to the bottom of the cell, and strong.\ne|This content is emphasized.\n\n.^l|This content is aligned to the top of the cell and literal.\n\na|\n[source]\nputs \"This is a source block!\"\n\n|===\n";
@@ -0,0 +1,2 @@
1
+ export default thematicBreak;
2
+ declare const thematicBreak: "\n// .basic\n'''\n";
@@ -0,0 +1,2 @@
1
+ export default toc;
2
+ declare const toc: string[];
@@ -0,0 +1,2 @@
1
+ export default uList;
2
+ declare const uList: "\n// .basic\n* Edgar Allen Poe\n* Sheri S. Tepper\n* Bill Bryson\n\n// .with-title\n.Writers\n* Edgar Allen Poe\n* Sheri S. Tepper\n* Bill Bryson\n\n// .with-id-and-role\n[#authors.green]\n* Edgar Allen Poe\n* Sheri S. Tepper\n* Bill Bryson\n\n// .max-nesting\n* level 1\n** level 2\n*** level 3\n**** level 4\n***** level 5\n** level 2\n\n// .complex-content\n* Every list item has at least one paragraph of content,\n which may be wrapped, even using a hanging indent.\n+\nAdditional paragraphs or blocks are adjoined by putting\na list continuation on a line adjacent to both blocks.\n+\nlist continuation:: a plus sign (`{plus}`) on a line by itself\n\n* A literal paragraph does not require a list continuation.\n\n $ gem install asciidoctor\n\n// .checklist\n- [*] checked\n- [x] also checked\n- [ ] not checked\n- normal list item\n";
@@ -0,0 +1,2 @@
1
+ export default verse;
2
+ declare const verse: "\n// .basic\n[verse]\nThe fog comes\non little cat feet.\n\n// .basic-with-attribution\n[verse, Carl Sandburg]\nThe fog comes\non little cat feet.\n\n// .basic-with-attribution-and-citetitle\n[verse, Carl Sandburg, two lines from the poem Fog]\nThe fog comes\non little cat feet.\n\n// .basic-with-title\n[verse]\n.Poetry\nThe fog comes\non little cat feet.\n\n// .basic-with-id-and-role\n[verse, id=\"sandburg\", role=\"center\"]\nThe fog comes\non little cat feet.\n\n// .block\n[verse]\n____\nThe fog comes\non little cat feet.\n\nIt sits looking\nover harbor and city\non silent haunches\nand then moves on.\n____\n";
@@ -0,0 +1,2 @@
1
+ export default video;
2
+ declare const video: "\n// .basic\nvideo::video_file.mp4[]\n\n// .with-poster\nvideo::video_file.mp4[poster=\"sunset.jpg\"]\n\n// .with-dimensions\nvideo::video_file.mp4[width=640, height=480]\n\n// .with-start\nvideo::video_file.mp4[start=10]\n\n// .with-end\nvideo::video_file.mp4[end=60]\n\n// .with-options\nvideo::video_file.mp4[options=\"autoplay, loop, nocontrols\"]\n\n// .with-title\n.Must watch!\nvideo::video_file.mp4[]\n\n// .with-id-and-role\nvideo::video_file.mp4[id=\"lindsey\", role=\"watch\"]\n";