Skip to content

Commit

Permalink
move html-converter.js to converter/html.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Mar 1, 2024
1 parent 4051895 commit d46f77d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/convert-asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const source = fs.readFileSync(sourceFile, 'utf8').trimEnd()
const asg = parse(source, { attributes: opts.attribute, parseInlines: true, showWarnings: true })
const output = opts.format === 'asg'
? require('#test-harness').stringifyASG(asg)
: require('asciidoc-parsing-lab/html-converter')(asg).trimEnd()
: require('asciidoc-parsing-lab/converter/html')(asg).trimEnd()
outputFile === '-' ? console.log(output) : fs.writeFileSync(outputFile, output + '\n', 'utf8')
timer && timer.timeEnd('elapsed')

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"exports": {
".": "./lib/index.js",
"./package.json": "./package.json",
"./html-converter": "./lib/html-converter.js"
"./converter/html": "./lib/converter/html.js"
},
"imports": {
"#attrlist-parser": "./lib/asciidoc-attrlist-parser.js",
Expand Down
2 changes: 1 addition & 1 deletion test/html-converter-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict'

const { expect, heredoc } = require('#test-harness')
const convertToHTML = require('asciidoc-parsing-lab/html-converter')
const convertToHTML = require('asciidoc-parsing-lab/converter/html')

describe('html-converter', () => {
const foldStyles = (html) => html.replace(/<style>[\s\S]+?<\/style>/, '<style>[...]</style>')
Expand Down

1 comment on commit d46f77d

@donzov
Copy link

@donzov donzov commented on d46f77d Mar 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • [ ]

Please sign in to comment.