Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mathml2omml

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mathml2omml - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

dist/index.js

22

package.json
{
"name": "mathml2omml",
"version": "0.3.0",
"version": "0.3.1",
"description": "a MathML to OMML converter ",
"main": "src/index.js",
"main": "dist/index.js",
"type": "module",
"scripts": {
"test": "node --experimental-vm-modules node_modules/.bin/jest",
"lint": "eslint ."
"lint": "eslint src/",
"transpile": "rollup -c",
"prepublishOnly": "npm run lint && npm run transpile"
},

@@ -26,9 +28,4 @@ "repository": {

"homepage": "https://github.com/fiduswriter/mathml2omml#readme",
"dependencies": {
"dom-serializer": "^2.0.0",
"htmlparser2": "^8.0.1",
"jest": "^28.1.0",
"xml-formatter": "^2.6.1"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^13.3.0",
"eslint": "^8.17.0",

@@ -38,4 +35,9 @@ "eslint-config-standard": "^17.0.0",

"eslint-plugin-n": "^15.2.2",
"eslint-plugin-promise": "^6.0.0"
"eslint-plugin-promise": "^6.0.0",
"rollup": "^2.78.1",
"dom-serializer": "^2.0.0",
"htmlparser2": "^8.0.1",
"jest": "^28.1.0",
"xml-formatter": "^2.6.1"
}
}

@@ -1,3 +0,3 @@

import * as htmlparser2 from "htmlparser2"
import render from "dom-serializer"
import * as htmlparser2 from 'htmlparser2'
import render from 'dom-serializer'
import { walker } from './walker.js'

@@ -8,3 +8,2 @@ import { cleanText } from './helpers.js'

constructor (mmlString) {
this.inString = mmlString

@@ -24,3 +23,3 @@ this.inXML = htmlparser2.parseDocument(mmlString)

getResult () {
this.outString = render([this.outXML], {xmlMode: true, encodeEntities: false, decodeEntities: false})
this.outString = render([this.outXML], { xmlMode: true, encodeEntities: false, decodeEntities: false })
return this.outString

@@ -27,0 +26,0 @@ }

@@ -22,3 +22,3 @@ export function menclose (element, targetParent, previousSibling, nextSibling, ancestors) {

children: [
{ type: 'tag', name: 'm:degHide', attribs: { 'm:val': 'on' }, children: []}
{ type: 'tag', name: 'm:degHide', attribs: { 'm:val': 'on' }, children: [] }
]

@@ -25,0 +25,0 @@ },

@@ -88,3 +88,2 @@ import { walker } from '../walker.js'

type: 'tag',
attribs: {},
name: 'm:e',

@@ -91,0 +90,0 @@ attribs: {},

@@ -28,3 +28,3 @@ import { getTextContent } from '../helpers.js'

children: [
{ type: 'tag', name: 'm:chr', attribs: { 'm:val': naryChar } , children: []},
{ type: 'tag', name: 'm:chr', attribs: { 'm:val': naryChar }, children: [] },
{ type: 'tag', name: 'm:limLoc', attribs: { 'm:val': type }, children: [] },

@@ -31,0 +31,0 @@ { type: 'tag', name: 'm:grow', attribs: { 'm:val': grow }, children: [] },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc