@foblex/m-render 2.6.4 → 2.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +3 -0
- package/README.md +164 -19
- package/assets/styles/_code-group.scss +4 -0
- package/assets/styles/_code-highlight.scss +4 -0
- package/assets/styles/_table.scss +51 -0
- package/assets/styles/styles.scss +1 -0
- package/fesm2022/foblex-m-render.mjs +112 -182
- package/fesm2022/foblex-m-render.mjs.map +1 -1
- package/lib/documentation-page/components/markdown-container/f-markdown/highlight/highlight.service.d.ts +5 -6
- package/lib/documentation-page/components/markdown-container/f-markdown/highlight/index.d.ts +0 -2
- package/lib/documentation-page/components/markdown-container/f-markdown/highlight/mark-code-focused-blocks.post-processor.d.ts +0 -2
- package/lib/documentation-page/components/markdown-container/f-markdown/markdown/index.d.ts +1 -1
- package/lib/documentation-page/components/markdown-container/f-markdown/markdown/parse-angular-example-with-code-links.d.ts +2 -8
- package/lib/documentation-page/components/markdown-container/f-markdown/markdown/parse-grouped-code-items.d.ts +0 -1
- package/lib/documentation-page/components/markdown-container/f-markdown/markdown/parse-preview-group.d.ts +0 -2
- package/lib/documentation-page/components/markdown-container/f-markdown/markdown/parse-single-code-item.d.ts +0 -1
- package/lib/documentation-page/components/markdown-container/f-markdown/markdown/utils.d.ts +10 -0
- package/package.json +1 -1
- package/lib/documentation-page/components/markdown-container/f-markdown/highlight/change-code-focused-syntax.pre-processor.d.ts +0 -7
- package/lib/documentation-page/components/markdown-container/f-markdown/highlight/modify-punctuation-highlight.post-processor.d.ts +0 -6
- package/lib/documentation-page/components/markdown-container/f-markdown/markdown/utils/get-content.d.ts +0 -2
- package/lib/documentation-page/components/markdown-container/f-markdown/markdown/utils/index.d.ts +0 -1
@@ -1,14 +1,13 @@
|
|
1
1
|
import { Observable } from 'rxjs';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export declare class HighlightService {
|
4
|
-
private _highlighter;
|
5
4
|
private readonly _browser;
|
5
|
+
private readonly _highlighter$;
|
6
6
|
highlight(element: HTMLElement, lang: string, content: string): Observable<HTMLElement>;
|
7
|
-
private
|
8
|
-
private
|
9
|
-
private
|
10
|
-
private
|
11
|
-
private _markNoneLanguage;
|
7
|
+
private _highlightCodeBlock;
|
8
|
+
private _renderCode;
|
9
|
+
private _preprocessFocus;
|
10
|
+
private _postProcess;
|
12
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<HighlightService, never>;
|
13
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<HighlightService>;
|
14
13
|
}
|
@@ -5,8 +5,6 @@ export declare class MarkCodeFocusedBlocksPostProcessor implements IHandler<HTML
|
|
5
5
|
private _browser;
|
6
6
|
constructor(_browser: BrowserService);
|
7
7
|
handle(element: HTMLElement): Observable<HTMLElement>;
|
8
|
-
private _getCodeBlocks;
|
9
|
-
private _replaceFocus;
|
10
8
|
private _applyOpacity;
|
11
9
|
private _getElementColor;
|
12
10
|
private _createRgbaString;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
export * from './domain';
|
2
|
-
export * from './utils';
|
3
2
|
export * from './markdown.service';
|
4
3
|
export * from './parse-alerts';
|
5
4
|
export * from './parse-grouped-code-items';
|
6
5
|
export * from './parse-single-code-item';
|
7
6
|
export * from './parse-angular-example-with-code-links';
|
8
7
|
export * from './parse-preview-group';
|
8
|
+
export * from './utils';
|
@@ -4,14 +4,8 @@ type ContainerArgs = [typeof container, string, {
|
|
4
4
|
}];
|
5
5
|
export declare class ParseAngularExampleWithCodeLinks {
|
6
6
|
render(): ContainerArgs;
|
7
|
-
private
|
8
|
-
private
|
9
|
-
private _createComponentData;
|
10
|
-
private _createContentData;
|
7
|
+
private _opening;
|
8
|
+
private _collectData;
|
11
9
|
private _parseNgComponent;
|
12
|
-
private _isNgComponent;
|
13
|
-
private _parseData;
|
14
|
-
private _extractFileData;
|
15
|
-
private _openingExampleGroupHTML;
|
16
10
|
}
|
17
11
|
export {};
|
@@ -7,10 +7,8 @@ export declare class ParsePreviewGroup {
|
|
7
7
|
private _navigation;
|
8
8
|
constructor(_navigation: IPreviewNavigationGroup[]);
|
9
9
|
render(): ContainerArgs;
|
10
|
-
private _isOpeningToken;
|
11
10
|
private _generateData;
|
12
11
|
private _parseData;
|
13
|
-
private _extractFileData;
|
14
12
|
private _getGroupsHTML;
|
15
13
|
private _getGroupFiltersHTML;
|
16
14
|
private _getItemsHTML;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { IMarkdownItToken } from './domain';
|
2
|
+
export declare function getContent(tokens: IMarkdownItToken[], index: number, eContainerType: string): string | undefined;
|
3
|
+
export declare function encodeDataAttr(data: unknown): string;
|
4
|
+
export declare function isOpeningToken(token: IMarkdownItToken): boolean;
|
5
|
+
export declare function isClosingToken(token: IMarkdownItToken): boolean;
|
6
|
+
export declare function parseFileLinkLine(line: string): {
|
7
|
+
fileName: string;
|
8
|
+
url: string;
|
9
|
+
} | null;
|
10
|
+
export declare function parseSingleBracketText(line: string): string | null;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@foblex/m-render",
|
3
|
-
"version": "2.6.
|
3
|
+
"version": "2.6.5",
|
4
4
|
"description": "MRender is a static site generator designed for creating fast and user-friendly documentation sites based on Markdown files. MarkEngine supports extended Markdown syntax and can render Angular components directly from Markdown files.",
|
5
5
|
"author": "Siarhei Huzarevich",
|
6
6
|
"license": "MIT",
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { Observable } from 'rxjs';
|
2
|
-
import { IHandler } from '@foblex/mediator';
|
3
|
-
export declare class ChangeCodeFocusedSyntaxPreProcessor implements IHandler<HTMLElement, Observable<HTMLElement>> {
|
4
|
-
handle(element: HTMLElement): Observable<HTMLElement>;
|
5
|
-
private _getCodeBlocks;
|
6
|
-
private _replaceFocus;
|
7
|
-
}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { Observable } from 'rxjs';
|
2
|
-
import { IHandler } from '@foblex/mediator';
|
3
|
-
export declare class ModifyPunctuationHighlightPostProcessor implements IHandler<HTMLElement, Observable<HTMLElement>> {
|
4
|
-
handle(element: HTMLElement): Observable<HTMLElement>;
|
5
|
-
private _replacePunctuation;
|
6
|
-
}
|
package/lib/documentation-page/components/markdown-container/f-markdown/markdown/utils/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './get-content';
|