semantic-release-steam 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,12 +6,16 @@ import { rewriteAssetLinksForSteam } from './readme.mjs';
6
6
 
7
7
  const FALLBACK_DESCRIPTION = 'No description available.';
8
8
 
9
+ function stripFenceInfoStrings(markdown) {
10
+ return markdown.replace(/^(\s*)(`{3,})[^\r\n`]*$/gm, '$1$2');
11
+ }
12
+
9
13
  export function renderSteamBBCode(markdown) {
10
14
  if (!markdown || markdown.trim().length === 0) {
11
15
  return FALLBACK_DESCRIPTION;
12
16
  }
13
17
 
14
- const [tree, context] = parse(markdown);
18
+ const [tree, context] = parse(stripFenceInfoStrings(markdown));
15
19
  const rendered = render(tree, context);
16
20
 
17
21
  if (!rendered || rendered.trim().length === 0) {
package/lib/vdf.mjs CHANGED
@@ -1,5 +1,10 @@
1
1
  function escapeVdfValue(value) {
2
- return String(value ?? '').replaceAll('"', '\\"');
2
+ let open = true;
3
+ return String(value ?? '').replace(/"/g, () => {
4
+ const quote = open ? '“' : '”';
5
+ open = !open;
6
+ return quote;
7
+ });
3
8
  }
4
9
 
5
10
  function appendOptional(lines, key, value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semantic-release-steam",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "semantic-release plugin that publishes a Steam Workshop item from a built mod directory.",
5
5
  "type": "module",
6
6
  "main": "index.mjs",