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" />
                    
Directory.Packages.props
<PackageReference Include="Tsinswreng.CsYamlMd" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Tsinswreng.CsYamlMd&version=0.0.1-alpha&prerelease
                    
Install as a Cake Tool

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 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.

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