This is a curated set of conventions and best practices for Stylus, an expressive, dynamic, robust and advanced CSS preprocessor. Frustrated with there not being a set of conventions set in place (that could be easily found), I set forth to find out on my own.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Data & Tools: | |
Many contributors. Thanks to all. | |
Contact: | |
[email protected] | |
IRC Channels: | |
#parlerparsers at https://webirc.hackint.org/ | |
#parlerparsers-video for video IDing | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import execjs | |
def find_equations(string): | |
""" Take in a string, and convert everything between $ ... $ into an inline | |
equation and everything between $$ ... $$ into a centred equation. """ | |
doubledollar = re.compile(ur"\$\$([^$]+)\$\$") | |
singledollar = re.compile(ur"(?<![\$])\$([^$]+)\$(?!\$)") |