Command line tool to format HTML or Bikeshed-flavored markdown to no-line-breaks but keep original indentation.
$ cargo install reformahtml$ reformahtml [--markdown | --no-markdown] <INPUT> [OUTPUT]- With a single path, the input file is overwritten.
 - With two paths, the second is written as the output.
 - No stdout output.
 
If an element should not be reformatted, add the data-noreformat attribute.
To run the regression tests:
cargo test
Regression tests use fixture files in tests/fixtures/inputs (inputs) and tests/fixtures/expected (expected outputs). Processes .bs (with Markdown enabled) and .html (with Markdown disabled) files.
- 
Add a new test: Place a new input file (e.g.,
my_test.bsormy_test.html) intests/fixtures/inputs. RunUPDATE_EXPECTED=1 cargo testto generate the corresponding expected file intests/fixtures/expected. - 
Update an existing test: Modify the input file or code, then run
UPDATE_EXPECTED=1 cargo testto regenerate the expected file.