highmark-cli 0.0.81 → 0.0.83

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.
package/bin/importer.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  const { readFile } = require("./utilities/fileSystem"),
4
- { divisionIdentifierFromFilePath } = require("./utilities/division"),
4
+ { divisionClassNameFromFilePath } = require("./utilities/division"),
5
5
  { nodeFromTokens, tokensFromContent } = require("./utilities/markdown");
6
6
 
7
7
  function importer(filePath, indent, context) {
@@ -10,14 +10,14 @@ function importer(filePath, indent, context) {
10
10
  const content = readFile(filePath);
11
11
 
12
12
  if (content !== null) {
13
- const divisionIdentifier = divisionIdentifierFromFilePath(filePath),
13
+ const divisionClassName = divisionClassNameFromFilePath(filePath),
14
14
  tokens = tokensFromContent(content),
15
15
  node = nodeFromTokens(tokens);
16
16
 
17
17
  if (node !== null) {
18
18
  Object.assign(context, {
19
19
  tokens,
20
- divisionIdentifier
20
+ divisionClassName
21
21
  });
22
22
 
23
23
  html = node.asHTML(indent, context);
@@ -4,7 +4,7 @@ const { filePathUtilities } = require("occam-entities"),
4
4
  { cssUtilities, defaultMarkdownStyle } = require("highmark-markdown-style")
5
5
 
6
6
  const { readFile, readDirectory } = require("../utilities/fileSystem"),
7
- { divisionIdentifierFromFilePath } = require("../utilities/division"),
7
+ { divisionClassNameFromFilePath } = require("../utilities/division"),
8
8
  { PERIOD, DEFAULT_SELECTOR_STRING } = require("../constants");
9
9
 
10
10
  const { isFilePathMarkdownStyleFilePath } = filePathUtilities,
@@ -50,9 +50,9 @@ function markdownStyleFromMarkdownStyleFilePath(markdownStyleFilePath) {
50
50
 
51
51
  function selectorStringFromMarkdownStyleFilePath(markdownStyleFilePath) {
52
52
  const filePath = markdownStyleFilePath, ///
53
- divisionIdentifier = divisionIdentifierFromFilePath(filePath),
54
- selectorString = (divisionIdentifier !== null) ?
55
- `div#${divisionIdentifier}` :
53
+ divisionClassName = divisionClassNameFromFilePath(filePath),
54
+ selectorString = (divisionClassName !== null) ?
55
+ `div.${divisionClassName}` :
56
56
  `div`;
57
57
 
58
58
  return selectorString;
@@ -7,8 +7,8 @@ const { DEFAULT_DIVISION_IDENTIFIER } = require("../constants");
7
7
  const { second } = arrayUtilities,
8
8
  { isPathName, bottommostNameFromPath } = pathUtilities;
9
9
 
10
- function divisionIdentifierFromFilePath(filePath) {
11
- let divisionIdentifier = null;
10
+ function divisionClassNameFromFilePath(filePath) {
11
+ let divisionClassName = null;
12
12
 
13
13
  const path = filePath,
14
14
  pathName = isPathName(path),
@@ -19,12 +19,12 @@ function divisionIdentifierFromFilePath(filePath) {
19
19
  secondMatch = second(matches);
20
20
 
21
21
  if (secondMatch !== DEFAULT_DIVISION_IDENTIFIER) {
22
- divisionIdentifier = secondMatch; ///
22
+ divisionClassName = secondMatch; ///
23
23
  }
24
24
 
25
- return divisionIdentifier;
25
+ return divisionClassName;
26
26
  }
27
27
 
28
28
  module.exports = {
29
- divisionIdentifierFromFilePath
29
+ divisionClassNameFromFilePath
30
30
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "highmark-cli",
3
3
  "author": "James Smith",
4
- "version": "0.0.81",
4
+ "version": "0.0.83",
5
5
  "license": "MIT, Anti-996",
6
6
  "homepage": "https://github.com/djalbat/highmark-cli",
7
7
  "description": "Extensible, styleable Markdown.",
@@ -11,8 +11,8 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "argumentative": "^2.0.28",
14
- "highmark-markdown": "^0.0.126",
15
- "highmark-markdown-style": "^0.0.175",
14
+ "highmark-markdown": "^0.0.132",
15
+ "highmark-markdown-style": "^0.0.177",
16
16
  "necessary": "^13.4.2",
17
17
  "occam-entities": "^1.0.83"
18
18
  },