Open bennypowers opened 4 years ago
Hi, thanks for your suggestion :-)
I actually already have an undocumented config to set default markdown header level. This option is called --markdown.headerLevel
. I just published version 1.0.2
that opens up for using this option.
In addition, I added a --silent
flag that can be used to prevent WCA from reporting progress to the console.
Now your use case is supported by running the following command using version 1.0.2
:
web-component-analyzer src --silent --markdown.headerLevel 2 >> README.md
In order to do this more elegantly, I suggest that we add options to the markdown output, that can be used to set a specific header or footer in the resulting markdown output. These options could be named --markdown.headerFile
and --markdown.footerFile
.
web-component-analyzer src --markdown.headerFile HEADER.md --outFile README.md
Would that suggestion cover your use case?
That would be ideal, thanks 😁
I think this and #159 are indeed duplicates. @bennypowers please see my "magic comment" suggestion.
It would be nice if wca had an option to concatenate its output to an existing README.md, while bumping up it's header levels.
Input:
Existing README.md
Output:
weakness
weakness
String
spider-man
Usage
suit
suit
classic|alien