From 59b6cf74dcc8f68b62a0aa4350712141c79c944b Mon Sep 17 00:00:00 2001 From: Markus Haslinger Date: Fri, 18 Nov 2022 18:37:26 +0100 Subject: [PATCH 1/2] update package version --- Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index c1a10625..fe803ec9 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -3,7 +3,7 @@ latest true 11.0.0-preview2 - 1.0.49 + 1.0.50 13.0.1 beta From 151c3f2957deab80335ce78cba5948005552787f Mon Sep 17 00:00:00 2001 From: Markus Haslinger Date: Fri, 18 Nov 2022 19:09:29 +0100 Subject: [PATCH 2/2] asciidoc sample document --- .../Resources/SampleFiles/document.adoc | 154 ++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 src/AvaloniaEdit.Demo/Resources/SampleFiles/document.adoc diff --git a/src/AvaloniaEdit.Demo/Resources/SampleFiles/document.adoc b/src/AvaloniaEdit.Demo/Resources/SampleFiles/document.adoc new file mode 100644 index 00000000..462d95f4 --- /dev/null +++ b/src/AvaloniaEdit.Demo/Resources/SampleFiles/document.adoc @@ -0,0 +1,154 @@ +// rich configuration possible +:icons: font +:toc: left +:sectnums: +:source-highlighter: highlightjs +:stem: latexmath + += An h1 header + +Paragraphs are separated by a blank line. + +2nd paragraph. _Italic_, *bold*, and `monospace`. +Itemized lists +look like: + +* this one +** that one +*** and that one +* the other one + +Note that --- not considering the asterisk --- the actual text +content starts at 4-columns in. + +> Block quotes are +> written like so. +> +> They can span multiple paragraphs, +> if you like. + +Use 2 dashes for an em-dash. +Three dots ... will be converted to an ellipsis. +Unicode is supported. ☺ + +NOTE: There are many more features, https://docs.asciidoctor.org/[check the docs] + +== An h2 header + +Here's a numbered list: + +. first item +. second item +.. a item +... roman item +. third item + +Here's a code sample, various syntax highlighters supported: + +[source,csharp] +---- +// Let me re-iterate ... +foreach (var item in items) { + DoSomething(item); <1> +} +---- +<1> Annotations possible, will not be copied with source -- very helpful + + +=== An h3 header [[a_label]] + +Now a nested list: + +. First, get these ingredients: +** carrots +** celery +** lentils +. Boil some water. +. Dump everything in the pot and follow +this algorithm: + +---- + find wooden spoon + uncover pot + stir + cover pot + balance wooden spoon precariously on pot handle + wait 10 minutes + goto first step (or shut off burner when done) + +Do not bump wooden spoon or it will fall. +---- + +Here's a link to http://foo.bar[a website], to a link:local-doc.html[local doc], and to a <> in the current doc. + +.Tables can look like this +|=== +|size |material |color + +|9 +|leather +|brown + +|10 +|hemp canvas +|natural + +|11 +|glass +a| +* Render in cell: +** transparent +** opaque +|=== + +A horizontal rule follows: + +''' + +If graphics package is installed this will render, otherwise https://kroki.io/[Kroki] can be used as well: + +[plantuml] +---- +@startuml +hide empty methods + +class Foo +{ + -int _bar; + + +void ToString() +} + +class Baz { + +List Foos +} + +Foo "n" -r-- "1..4" Baz: has + +@enduml +---- + +Images can be specified inline image:example-image.jpg[image] and block like so: + +.with an optional label +image::example-image.jpg[Block image] + +Inline math equations go in like so: stem:[\omega = d\phi / dt]. +Display math should get its own line: + +stem:[I = \int \rho R^{2} dV] + +Full stem:[\LaTeX] math support 🙃 + +==== Even more + +.Some things not covered here (hidden in the collapsible block) +[%collapsible] +==== +Footers:: Generate in various ways or have none +Sidebars:: Can contain any type of content, such as quotes, equations, and images +Videos:: Include with `video::` + +==== + +And there is even much morefootnote:[Like creating revealjs presentations]. \ No newline at end of file