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

Fails to define ordered list classes as sphinx/rst expects #85

Open
infinity0 opened this issue Dec 3, 2020 · 1 comment
Open

Fails to define ordered list classes as sphinx/rst expects #85

infinity0 opened this issue Dec 3, 2020 · 1 comment

Comments

@infinity0
Copy link
Contributor

infinity0 commented Dec 3, 2020

When parsing rst ordered lists, you can do something like:

a. item A
b. item B

Either sphinx or docutils is converting this into <ol class="loweralpha simple"> etc with the list style being applied in basic.css by the default theme:

ol.arabic {
    list-style: decimal;
}

ol.loweralpha {
    list-style: lower-alpha;
}

ol.upperalpha {
    list-style: upper-alpha;
}

ol.lowerroman {
    list-style: lower-roman;
}

ol.upperroman {
    list-style: upper-roman;
}

sphinx-material does not define these classes however, so these lists end up with roman numerals 1, 2, 3 etc in the generated html, contradicting the rst source code.

@infinity0
Copy link
Contributor Author

There is also:

.align-left {
    float: left;
}

.align-right {
    float: right;
}

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