rosaenlg-filter
Advanced tools
Comparing version 2.5.3 to 2.5.4
@@ -5,2 +5,4 @@ export interface ReplacedHtml { | ||
} | ||
export declare const blockLevelElts: string[]; | ||
export declare const inlineElts: string[]; | ||
export declare function replaceHtml(input: string): ReplacedHtml; | ||
@@ -7,0 +9,0 @@ export declare function replacePlaceholders(input: string, elts: string[]): string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const blockLevelElts = [ | ||
exports.blockLevelElts = [ | ||
'address', | ||
@@ -34,3 +34,3 @@ 'article', | ||
]; | ||
const inlineElts = [ | ||
exports.inlineElts = [ | ||
'a', | ||
@@ -77,3 +77,3 @@ 'abbr', | ||
replacedHtml.elts.push(match); | ||
if (blockLevelElts.indexOf(tag) > -1) { | ||
if (exports.blockLevelElts.indexOf(tag) > -1) { | ||
if (begin === '/') { | ||
@@ -80,0 +80,0 @@ return '☚'; |
import { Languages } from './constants'; | ||
export declare const blockLevelHtmlElts: string[]; | ||
export declare const inlineHtmlElts: string[]; | ||
export declare function filter(input: string, language: Languages): string; |
@@ -11,2 +11,4 @@ "use strict"; | ||
const html = require("./html"); | ||
exports.blockLevelHtmlElts = html.blockLevelElts; | ||
exports.inlineHtmlElts = html.inlineElts; | ||
//import * as Debug from 'debug'; | ||
@@ -13,0 +15,0 @@ //const debug = Debug('rosaenlg-filter'); |
{ | ||
"name": "rosaenlg-filter", | ||
"version": "2.5.3", | ||
"version": "2.5.4", | ||
"description": "Filtering feature of RosaeNLG", | ||
@@ -46,3 +46,3 @@ "main": "dist/index.js", | ||
"debug": "^4.1.1", | ||
"french-h-muet-aspire": "2.5.3", | ||
"french-h-muet-aspire": "2.5.4", | ||
"titlecase-french": "^1.0.1" | ||
@@ -60,3 +60,3 @@ }, | ||
}, | ||
"gitHead": "3dcac44372256f9a23f9016675f63205f3b9a9ee" | ||
"gitHead": "7d80b030b06e15b2c25ae11435d1e47ae07071aa" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
57786
815
+ Addedfrench-h-muet-aspire@2.5.4(transitive)
- Removedfrench-h-muet-aspire@2.5.3(transitive)
Updatedfrench-h-muet-aspire@2.5.4