kekyo/MarkTheRipper

Automatic category collection is possible.

Closed this issue · 2 comments

kekyo commented

Automatically add subdirectory names as category to the metadata dictionary.

  • Whether there is such a thing as a hierarchical category in general.
  • If it exists, how is it written in the markdown?
  • If it does not exist, does MarkTheRipper support it so that it can be written in a natural format?
  • Or just the first level, and further nested subdirectories ignore that structure?
kekyo commented
  1. I mistook slug and category, and this issue is about category, so i fixed the goal and the summary.
  2. Nested subdirectories should be listed in the order in which they are nested by subdirectory name, and this should be the category keyword.
  3. if the category keyword is explicitly specified, follow the specification (ignore subdirectories).
kekyo commented

Merged. 0.0.22

Remarks :

  • Parentheses ([]) are now required when using comma-separated list format for keyword values in headers.
    • As background, it is more desirable for the convenience of string forming if the dictionary value when enumerating categories is an enumerable type. Therefore, the parentheses are detected and converted to an array during markdown parsing.
    • The parser implementation of the header is rather lax and needs to be improved in the future. Probably LL(1) is fine.