This file contains hidden or 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
| local system = require 'pandoc.system' | |
| local tex_template = [[ | |
| \documentclass{article} | |
| \usepackage{amsmath,amssymb,amsfonts} | |
| \usepackage[active,tightpage]{preview} | |
| \usepackage{fontspec} | |
| \usepackage{unicode-math} | |
| \setmathfont{Latin Modern Math} | |
| \begin{document} |
This file contains hidden or 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
| mas.to##[class*="name"] | |
| acgnx.se##img | |
| x.com##[data-testid*="Name"] | |
| ! x.com##[data-testid*="User"], [data-testid*="Context"], | |
| x.com##[aria-label="Subscribe to Premium"] | |
| x.com##[href="/i/premium_sign_up"] | |
| ! https://*.fandom.com |
This file contains hidden or 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
| -- Date filter for pandoc | |
| -- If the whole paragraph is just a date and time, then do nothing. | |
| -- Otherwise, encoutering a date and time in the middle of a paragraph, change it | |
| -- to a span. | |
| Para = function(_) | |
| -- if the paragraph matches the time format, | |
| -- then add the time css class | |
| if #_.content == 3 then |