Replies: 2 comments 1 reply
-
Yes, I just checked it out.
All options (including CLI-specific parameters) are documented in chapter Convert PML to HTML of the PMLC Commands Reference Manual.
Now fixed in the
I've added the following note in the documentation of the
To avoid frequent manual updates of your plugin, I would suggest to currently not do any validation within the If you need the options meta data added to the existing JSON file, we can agree on the format first, and then implement it in a future version. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@pml-lang, I've just implemented support for the
[optionsnode in Sublime PML — although mostly undocumented, it's already merged onmainso you should see it in the package update next time you launch ST.Because there are quite a lot of CLI options available, and since only some of them seem to make sense within a document, I've hand-picked a limited number of options so far:
[highlighter[TOC_max_level[TOC_position[TOC_title(for more details, see
PACKAGE_STATUS.md)The PML Nodes Ref Manual doesn't really provide much details on the
[optionsnode (and, BTW, all example options are misspelled, lacking underscores), I wanted to ask you to share some thoughts on which options the editor should support, and which should be left out.By play-editing with
[optionsyou'll notice that some validation is also done in the background: those options that expect fixed values will scope as "invalid" any inconsistent values, but can handle letter casing insensitively where required, and correctly support parameters and comments (tested against real use cases).I haven't yet got to add smart-completions because I still need to make up my mind on how to handle some details, but once they are in place I'll also update the documentation.
In the meantime, please tell me which CLI options don't apply (or make sense) within documents sources, or if any CLI opt is indeed valid, and do share some thoughts on how to make the most out of this node within the package.
Beta Was this translation helpful? Give feedback.
All reactions