Skip to content

Commit

Permalink
Merge pull request #291 from markushaslinger/Update_TextMateSharp_to_…
Browse files Browse the repository at this point in the history
…1.0.50

Update text mate sharp to 1.0.50
  • Loading branch information
danipen authored Nov 18, 2022
2 parents 286efec + 151c3f2 commit f0727a0
Show file tree
Hide file tree
Showing 2 changed files with 155 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<LangVersion>latest</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AvaloniaVersion>11.0.0-preview2</AvaloniaVersion>
<TextMateSharpVersion>1.0.49</TextMateSharpVersion>
<TextMateSharpVersion>1.0.50</TextMateSharpVersion>
<NewtonsoftJsonVersion>13.0.1</NewtonsoftJsonVersion>
<VersionSuffix>beta</VersionSuffix>
</PropertyGroup>
Expand Down
154 changes: 154 additions & 0 deletions src/AvaloniaEdit.Demo/Resources/SampleFiles/document.adoc
Original file line number Diff line number Diff line change
@@ -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 <<a_label,label>> 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<Foo> 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].

0 comments on commit f0727a0

Please sign in to comment.