You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -812,6 +812,8 @@ MarkItDown exposes optional abstractions for running documents through cloud ser
812
812
813
813
The `AzureIntelligenceOptions`, `GoogleIntelligenceOptions`, and `AwsIntelligenceOptions` helpers wire the respective cloud Document AI/Vision/Speech stacks without forcing the dependency on consumers. You can still bring your own implementation by assigning the provider interfaces directly on `MarkItDownOptions`.
814
814
815
+
`MarkItDownClient` emits structured `ILogger` events and OpenTelemetry spans by default. Toggle instrumentation with `MarkItDownOptions.EnableTelemetry`, supply a custom `ActivitySource`/`Meter`, or provide a `LoggerFactory` to integrate with your application's logging pipeline.
MetaMD is a Markdown profile that layers structured metadata and citation-aware rendering on top of CommonMark. Files typically use the `.metamd` extension (optionally `.metamd.md`) and begin with a JSON front matter block delimited by `+++` fences.
4
+
5
+
## Front Matter Schema
6
+
7
+
```json
8
+
{
9
+
"title": "Document title",
10
+
"abstract": "Optional abstract text.",
11
+
"contributors": ["Name", "Name"],
12
+
"affiliations": ["Organisation"],
13
+
"keywords": ["term", "term"],
14
+
"references": [
15
+
{
16
+
"id": "unique-id",
17
+
"title": "Reference title",
18
+
"authors": ["Author"],
19
+
"url": "https://example.com/reference"
20
+
}
21
+
]
22
+
}
23
+
```
24
+
25
+
All properties are optional. Unknown properties are ignored by the converter.
26
+
27
+
## Reference Syntax
28
+
29
+
Inline citations use `[@id]`. During conversion each citation is replaced with a Markdown link if a URL is present, or bold text when the reference has no URL. Referenced entries are collected and emitted in a `## References` section at the end of the document, preserving author lists and links.
30
+
31
+
## Diagram Blocks
32
+
33
+
MetaMD supports lightweight diagram embedding via custom blocks:
34
+
35
+
```
36
+
:::diagram type="mermaid"
37
+
<diagram body>
38
+
:::
39
+
```
40
+
41
+
The converter rewrites these blocks as fenced code blocks using the requested diagram type (e.g., `mermaid`, `dot`, `plantuml`).
42
+
43
+
## Compatibility
44
+
45
+
Because MetaMD is a superset of Markdown, downstream tools that do not recognise the front matter or diagram directives still render the body content. The .NET converter automatically recognises `.metamd` and `.metamd.md` files, extracts metadata into headings, and normalises references for consistent Markdown output.
0 commit comments