Tsinswreng.CsYamlMd
0.0.1-alpha
This is a prerelease version of Tsinswreng.CsYamlMd.
dotnet add package Tsinswreng.CsYamlMd --version 0.0.1-alpha
NuGet\Install-Package Tsinswreng.CsYamlMd -Version 0.0.1-alpha
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Tsinswreng.CsYamlMd" Version="0.0.1-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tsinswreng.CsYamlMd" Version="0.0.1-alpha" />
<PackageReference Include="Tsinswreng.CsYamlMd" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Tsinswreng.CsYamlMd --version 0.0.1-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Tsinswreng.CsYamlMd, 0.0.1-alpha"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Tsinswreng.CsYamlMd@0.0.1-alpha
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Tsinswreng.CsYamlMd&version=0.0.1-alpha&prerelease
#tool nuget:?package=Tsinswreng.CsYamlMd&version=0.0.1-alpha&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
YamlMd是一種markdown與yaml結合的寫法, 便于在yaml中結合無需額外縮進與轉義的多行文本塊, 可輕鬆解析爲yaml格式
例
```yaml
name: Tsins
foo: *__content1
bar: *__content2
c3: *__content3
c4: *__content4
```
# __content1
```ts
console.log(
"Hello, world!"
);
```
# __content2
```cs
foreach(var i in list){
Console.WriteLine(i);
}
```
# __content3
# __content4
```
```
上面的YamlMd解析成yaml後爲:
# 本來不應該加上不必要的註釋、這裏爲了方便說明格式 特地帶上了註釋。
__content1: &__content1 |+
console.log(
"Hello, world!"
);
__content2: &__content2 |+
foreach(var i in list){
Console.WriteLine(i);
}
# md大標題後無代碼塊則設成null
__content3: &__content3 null
# md大標題有代碼塊但代碼塊內容爲空則設成空字符串
__content4: &__content4 "" #下面 插入的錨點和 原始yaml之間要空一行
name: Tsins
foo: *__content1
bar: *__content2
c3: *__content3
c4: *__content4
```yaml
name: Tsinswreng
descr: *__descr
code: *__code
```
# __descr
```
24 years old,
Student
```
# __code
```cpp
int main(){
return 0;
}
```
上面的YamlMd解析成yaml後爲:
__descr: &__descr |+
aaa
111
__code: &__code |+
int main(){
return 0;
}
name: Tsinswreng
descr: *__descr
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Markdig (>= 0.45.0)
- Tsinswreng.CsCore (>= 0.0.1-alpha)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.1-alpha | 83 | 5/17/2026 |