* trust option to indicate whether input text is trusted
* Revamp into trust contexts beyond just command
* Document new trust function style
* Fix screenshot testing
* Use trust setting in \url and \href
* Check `isTrusted` in `\url` and `\href` (so now disabled by default)
* Automatically compute `protocol` from `url` in `isTrusted`, so it
doesn't need to be passed into every context.
* Document untrusted features in support list/table
* Existing tests trust by default
* remove allowedProtocols and fix flow errors
* remove 'allowedProtocols' from documentation
* add a comment about a flow error, rename urlToProtocol to protocolFromUrl
* add tests test that use function version of trust option
* default trust to false in MathML tests
* fix test title, remove 'trust: false' from test settings since it's the default
* Support \textup and \textmd
This PR adds support for `\textup` and `\textmd`, which are the inverses of
`\textit` and `\textbf`. Unlike bare `\text`, they result in `textup` and
`textmd` classes being applied, but those have no CSS rules, so they act the
same as bare `\text`.
Fixes#1909.
* Add documentation
* Add unsupported font commands
* Add support for `\lparen` and `\rparen` delimiters.
* Add missing math delimiter. Fix alphabetic order.
* Add test.
* Add spaces between parenthesis and square brackets.
* Change `npm run` to `yarn`
* Export `commander` program if required as module
* Move `prestart` (cli.md generation) to build.js
* Normalize script names
* Change `yarn prestart` to `node lib/build.js`
* Use local built CSS and fonts
* Move stylesheet after the first paragraph
* Remove prestart script
* Sync support pages
* Use KaTeX logo for \href example
* mobile support
* Unit block sizes
* Add texvc to supported.md
* Fix CSS lint errors
* Added suggested braces to demo page
* Pick up review comments
* Move \allowbreak
* Comments without terminating newlines in nonstrict mode
Fix#1506 by allowing single-line comments (`%` without terminating newline)
in nonstrict mode. `Lexer` and `MacroExpander` now store the `Settings`
object, so the `Lexer` can complain about missing newline according to the
`strict` setting. I filtered this out from the snapshot tests with a slightly
different `replacer`.
* Reimplement \href like \verb, add \url
Major restructuring to lex URL arguments differently, e.g. to support
`\href%{hello}` and `\href{http://foo.com/#test%}{hello}`. The new URL
parsing code is simpler, but involves a special case in `parseSymbol`
like `\verb`.
Also add support for `\url` while we're here.
* Cleanup
* Fix flow errors and improve error messages
* Add \url to documentation
* Improve doc formatting
* website/docs: initial commit
* Change secondaryColor
* Fix index.css not being copied and included on global stylesheet
* Fix stylesheet link
[skip ci]
* Change documentation link to API(Usage)
[skip ci]
* Add `Libraries` in usage
[skip ci]
* Remove documentation from `README.md` and add link to the site
[skip ci]
* Use KaTeX in the parent directory to build Markdown
[skip ci]
* Revise function support page. Avoid error msgs.
* General edit to function support page