Brendan

Results 703 comments of Brendan

I'm also looking into a way to strip the `` element from tab label output (which better suites upstream CSS).

That's what I thought as well, but I was able to reproduce the issue (not using main branch right now though).

I didn't know sphinx allowed anything newer than docutils v16

I'm using docutils 0.17.1 with sphinx v4.4.0. I'm switching to main to see if it reproduces there.

using the main branch, I was able to partially fix the issue by making sure the label's text started with literal text (not a inline interpreted text role). But notice...

The `math` role works also, but I think that's getting transformed at page load. ![image](https://user-images.githubusercontent.com/14963867/161357985-73276dcb-cf62-4f10-96bc-554f3a664947.png)

> If you add "sphinx_design" to the list of extensions in conf.py then octicon works. yep. just realized that as well. I wonder if we pad the text with whitespace,...

```py textnodes, _ = self.state.inline_text(" " + self.arguments[0], self.lineno) ``` this works: ![image](https://user-images.githubusercontent.com/14963867/161358336-b82a8608-daa7-4a43-8e38-167f61f18a5c.png)

oh, I didn't notice which line you were talking about with the `"",` with ```py #L95 tab_label = nodes.rubric( "", "", *textnodes, classes=["tabbed-label"] ) #L154-157 label_node = content_tab_label( "", "",...

I took a peek at [nav_adapt.py](https://github.com/jbms/sphinx-immaterial/blob/943c447a4204eae1780b43269761b1a1a434702a/sphinx_immaterial/nav_adapt.py#L95) (the code that assembles the ToCs), and it looks like most of the code was designed around using plain text for section titles. I...