This commit is contained in:
Robert Jelic
2025-02-16 18:04:24 +01:00
parent 41e6149828
commit 31787b0e9b
2670 changed files with 1037781 additions and 0 deletions

22
node_modules/shiki/samples/powerquery.sample generated vendored Normal file
View File

@@ -0,0 +1,22 @@
// Transforms a table into markdown syntax
(Table as table) =>
let
Source = Table,
TableValues = Table.AddColumn(
Source, "Custom", each Text.Combine(Record.FieldValues(_), " | ")
),
HyphenLine = Text.Combine(
List.Transform(
Table.ColumnNames(Source), each Text.Repeat("-", Text.Length(_))
),
" | "
),
CombineList = List.Combine(
{{Text.Combine(Table.ColumnNames(Source), " | ")},
{HyphenLine}, TableValues[Custom]}
),
TransferToMarkdown = Text.Combine(CombineList, "#(lf)")
in
TransferToMarkdown
// From https://github.com/mogulargmbh/powerquerysnippets/blob/main/snippets/Table_ToMarkdown.pq