mhchemParser.d.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*!
  2. *************************************************************************
  3. *
  4. * mhchemParser.ts
  5. * 4.2.1
  6. *
  7. * Parser for the \ce command and \pu command for MathJax and Co.
  8. *
  9. * mhchem's \ce is a tool for writing beautiful chemical equations easily.
  10. * mhchem's \pu is a tool for writing physical units easily.
  11. *
  12. * ----------------------------------------------------------------------
  13. *
  14. * Copyright (c) 2015-2023 Martin Hensel
  15. *
  16. * Licensed under the Apache License, Version 2.0 (the "License");
  17. * you may not use this file except in compliance with the License.
  18. * You may obtain a copy of the License at
  19. *
  20. * http://www.apache.org/licenses/LICENSE-2.0
  21. *
  22. * Unless required by applicable law or agreed to in writing, software
  23. * distributed under the License is distributed on an "AS IS" BASIS,
  24. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  25. * See the License for the specific language governing permissions and
  26. * limitations under the License.
  27. *
  28. * ----------------------------------------------------------------------
  29. *
  30. * https://github.com/mhchem/mhchemParser
  31. *
  32. */
  33. export declare class mhchemParser {
  34. static toTex(input: string, type: "tex" | "ce" | "pu"): string;
  35. }