Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support generating nested HTML list from tree of tabs #56

Open
piroor opened this issue Oct 11, 2024 · 1 comment
Open

Support generating nested HTML list from tree of tabs #56

piroor opened this issue Oct 11, 2024 · 1 comment

Comments

@piroor
Copy link
Owner

piroor commented Oct 11, 2024

Short description

Currently there is no way to generate nested HTML list. See also: piroor/treestyletab#3618

Steps to reproduce

  1. Start Firefox with clean profile.
  2. Install this addon.
  3. Add rule to generate HTML list.
  4. Prepare a nested tree of tabs.
  5. Select them and copy it as an HTML list.

Expected result

A nested list is copied as:

<ul>
  <li><a href="..."></a>
    <ul>
      <li><a href="..."></a>
        <ul>
          <li><a href="..."></a></li>
        </ul>
      </li>
    </ul>
  </li>
</ul>

Actual result

A flat list is copied as:

<ul>
<li><a href="..."></a></li>
<li><a href="..."></a></li>
<li><a href="..."></a></li>
</ul>

Environment

  • Platform (OS): All
  • Version of Firefox: All
  • Version (or revision) of CSTTC: 1.6.6
@piroor
Copy link
Owner Author

piroor commented Oct 11, 2024

An idea of the syntax to support such nested lists:

%RT%%PREFIX(<ul>%EOL%)%%SUFFIX(</ul>%EOL%)%<li><a href="%URL_HTMLIFIED%">%TITLE_HTMLIFIED%</a>%CHILDREN%</li>%EOL%

%EOL%%CHILDREN% will be added to the end of the definition automatically if the rule does not contain %CHILDREN%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant