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

@tinymce/moxiedoc

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinymce/moxiedoc - npm Package Compare versions

Comparing version 0.2.0-feature.20220218064439220.shaf70ec27 to 0.2.0-feature.20220309231308599.sha3b8dd7a

4

dist/templates/antora/antora.converter.js

@@ -46,5 +46,7 @@ "use strict";

};
// convert content that looks like asciidoc attributes (e.g {0}) to literal strings
const escapeAttributes = (str) => str.replace(/(\{\s*[\w\d-]+\s*\})/g, '+$1+');
// runs a bunch of required cleanup filters, where embedded code/text can break asciidoc rendering
const cleanup = (str) => {
const filters = [escapeComments, encodeBR, encodeEM, encodeStrong, encodeLinks, encodeCode];
const filters = [escapeComments, encodeBR, encodeEM, encodeStrong, encodeLinks, encodeCode, escapeAttributes];
return filters.reduce((acc, filter) => filter(acc), str);

@@ -51,0 +53,0 @@ };

{
"name": "@tinymce/moxiedoc",
"version": "0.2.0-feature.20220218064439220.shaf70ec27",
"version": "0.2.0-feature.20220309231308599.sha3b8dd7a",
"description": "A tool for generating API documentation",

@@ -5,0 +5,0 @@ "author": "Tiny Technologies, Inc",

@@ -61,5 +61,9 @@ import { Return } from '../../lib/member';

// convert content that looks like asciidoc attributes (e.g {0}) to literal strings
const escapeAttributes = (str: string): string =>
str.replace(/(\{\s*[\w\d-]+\s*\})/g, '+$1+');
// runs a bunch of required cleanup filters, where embedded code/text can break asciidoc rendering
const cleanup = (str: string): string => {
const filters = [ escapeComments, encodeBR, encodeEM, encodeStrong, encodeLinks, encodeCode ];
const filters = [ escapeComments, encodeBR, encodeEM, encodeStrong, encodeLinks, encodeCode, escapeAttributes ];
return filters.reduce((acc, filter) => filter(acc), str);

@@ -66,0 +70,0 @@ };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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