generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Merge pull request #144 from samuele-cozzi:134-highlighting-mis…
…sing 134-highlighting-missing
- Loading branch information
Showing
24 changed files
with
1,910 additions
and
1,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: Markdown-It Plugins | ||
nav_order: 4 | ||
--- | ||
|
||
Markdown-it is a powerful and flexible Markdown parser that allows you to convert Markdown syntax into HTML. It’s widely used for rendering Markdown content on websites, blogs, and documentation. | ||
|
||
## Markdown-it Plugins | ||
|
||
Markdown-it supports community-written plugins. The Plugins can be loaded like this: | ||
|
||
```js | ||
const md = markdownit | ||
.use(plugin1) | ||
.use(plugin2, opts, ...) | ||
.use(plugin3); | ||
``` | ||
|
||
## Marp Slides Markdown-It Plugins | ||
|
||
- [Mark](31.Markdown-it-Mark.md) | ||
- [Containers](32.Markdown-it-Conteiners.md) | ||
- [Kroki](33.Markdown-it-Kroki.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: Markdown-It Mark | ||
parent: Markdown-It Plugins | ||
--- | ||
Markup uses the same conditions as CommonMark [emphasis](http://spec.commonmark.org/0.15/#emphasis-and-strong-emphasis). | ||
|
||
`==marked==` => `<mark>inserted</mark>` | ||
|
||
## Sample | ||
|
||
```markdown | ||
--- | ||
# Text Highlights | ||
|
||
**[markdown-it-mark](https://github.com/markdown-it/markdown-it-mark)** | ||
|
||
This is ==marked== text | ||
--- | ||
``` | ||
|
||
![alt text](pictures/plugin-mark.png) | ||
|
||
## References | ||
|
||
- [markdown-it-mark](https://github.com/markdown-it/markdown-it-mark) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: Markdown-It Conteiners | ||
parent: Markdown-It Plugins | ||
--- | ||
|
||
With this plugin you can create block containers like: | ||
|
||
```markdown | ||
::: container | ||
*here be dragons* | ||
::: | ||
``` | ||
|
||
.... and specify how they should be rendered. If no renderer defined, `<div>` with | ||
container name class will be created: | ||
|
||
```html | ||
<div class="container"> | ||
<em>here be dragons</em> | ||
</div> | ||
``` | ||
|
||
## Sample | ||
|
||
```markdown | ||
--- | ||
|
||
<!-- _class: box-flex --> | ||
# Columns Containers | ||
|
||
**[markdown-it-container](https://github.com/markdown-it/markdown-it-container)** | ||
|
||
::: container | ||
## Colum 1 | ||
|
||
text dadadas text text text text text text text text text text | ||
|
||
::: | ||
|
||
::: container | ||
## Colum 2 | ||
|
||
text | ||
|
||
::: | ||
|
||
--- | ||
``` | ||
|
||
![1709827719273](attachments/32.Markdown-it-Conteiners/1709827719273.png) | ||
|
||
|
||
## References | ||
|
||
- [markdown-it-container](https://github.com/markdown-it/markdown-it-container) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
title: Markdown-It Kroki | ||
parent: Markdown-It Plugins | ||
--- | ||
|
||
# markdown-it-kroki | ||
|
||
> This library was designed to embed [Kroki.io](https://kroki.io/) diagram into [Marp](https://marp.app/) slide decks!! | ||
This library is a plugin for markdown-it to embed figure created by textual syntax. | ||
To use this package, you can embed **Software Diagram** (like UML) written by **code** in Marp slide decks. | ||
|
||
## Sample | ||
|
||
```plantuml[platuml image] | ||
@startuml | ||
left to right direction | ||
actor Guest as g | ||
package Professional { | ||
actor Chef as c | ||
actor "Food Critic" as fc | ||
} | ||
package Restaurant { | ||
usecase "Eat Food" as UC1 | ||
usecase "Pay for Food" as UC2 | ||
usecase "Drink" as UC3 | ||
usecase "Review" as UC4 | ||
} | ||
fc --> UC4 | ||
g --> UC1 | ||
g --> UC2 | ||
g --> UC3 | ||
@enduml | ||
``` | ||
|
||
![alt text](pictures/plugin-kroki.png) | ||
|
||
If you want to write diagrams, you can use various syntaxes (such as [PlantUML](https://plantuml.com/) or [Mermaid](https://mermaid-js.github.io/mermaid/#/)) within fenced code blocks. | ||
|
||
|
||
> [!NOTE] | ||
> This package depends on [Kroki.io](https://kroki.io). | ||
> If you want to know which **diagram languages are supported**, | ||
> please check the official website at [https://kroki.io/](https://kroki.io/). | ||
## References | ||
|
||
- [markdown-it-kroki](https://github.com/kazumatu981/markdown-it-kroki) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: Examples | ||
nav_order: 4 | ||
nav_order: 5 | ||
--- | ||
|
||
# Examples | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: Developer Guide | ||
nav_order: 5 | ||
nav_order: 6 | ||
--- | ||
|
||
# Developer Guide | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.