Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Commit 98cc1dd

Browse files
authored
Merge pull request #1959 from IgniteUI/sstoychev/aligning-topic-with-docfx-rules
fix(transform): modifying transform to match linting rules
2 parents c75f904 + eec7614 commit 98cc1dd

4 files changed

Lines changed: 23 additions & 6 deletions

File tree

doc/en/components/general-changelog-dv-react.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,8 @@ Please note that the maximum size available for the icons is 24x24. You can prov
495495
|37244 | Excel Library | Custom Data Validation is not working.|
496496

497497
## **{PackageVerChanges-24-2-APR2}**
498-
> [!Note]With 19.0.0 the React product introduces many breaking changes done to improve and streamline the API. Please refer to the full Update Guide.
498+
> [!Note]
499+
> With 19.0.0 the React product introduces many breaking changes done to improve and streamline the API. Please refer to the full Update Guide.
499500

500501
[Update Guide](update-guide.md)
501502

doc/en/components/layouts/tile-manager.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ The following {ProductName} Tile Manager Example shows the component in action.
1616

1717
`sample="/layouts/tile-manager/overview", height="752", scrollable, alt="{Platform} Tile Manager Example"`
1818

19-
> [!Warning] Due to the iframe permissions policy, the fullscreen button in this example will only work when the example is opened in standalone mode by clicking the 'Expand to fullscreen' button in the top-right corner.
19+
> [!Warning]
20+
> Due to the iframe permissions policy, the fullscreen button in this example will only work when the example is opened in standalone mode by clicking the 'Expand to fullscreen' button in the top-right corner.
2021
2122
## Usage
2223

@@ -432,7 +433,8 @@ Resizing in the Tile Manager is a functionality that allows tiles to be resized
432433

433434
To ensure smooth resizing, a ghost element is used instead of directly modifying the tile’s dimensions. This element appears on top of the original tile, displaying its current dimensions when resizing begins, and it updates in real time as the user drags any of the resize handles.
434435

435-
> [!Note] If the ghost element exceeds the available grid space, it will automatically adjust to the largest possible span within the grid's limits.
436+
> [!Note]
437+
> If the ghost element exceeds the available grid space, it will automatically adjust to the largest possible span within the grid's limits.
436438
437439
The Tile Manager automatically rearranges itself when a tile changes size, ensuring that there is minimal empty space. That's why expanding a tile may push adjacent tiles into new positions, while shrinking creates gaps that other tiles may fill dynamically. This ensures that the Tile Manager stays as compact as possible, without any overlapping tiles, and that all movements remain within the defined grid structure.
438440

@@ -499,7 +501,8 @@ You can reorder tiles in the Tile Manager using the drag-and-drop feature. By de
499501
- With the `tile` option, you can click and hold anywhere on an individual tile to start dragging it.
500502
- With the `tile-header` option, you can only click and hold in the tile's header section to start the dragging process.
501503

502-
> [!Note] While the tile is in maximized or fullscreen state, the tile cannot be dragged.
504+
> [!Note]
505+
> While the tile is in maximized or fullscreen state, the tile cannot be dragged.
503506
504507
Similar to resizing, when you initiate the drag-and-drop process, a ghost element appears beneath the tile you’ve grabbed. As you drag the tile, the ghost element moves with it, dynamically reordering the other tiles in real time. This allows you to preview how the tile grid will look when you drop the tile.
505508

doc/jp/components/general-changelog-dv-react.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,8 @@ X 軸と Y 軸に `CompanionAxis` プロパティが追加され、既存の軸
408408

409409
## **{PackageVerChanges-24-2-APR2}**
410410

411-
> [!Note] バージョン 19.0.0 では、React 製品に多くの重大な変更が導入され、API の改善と整理が行われました。詳細は完全なアップデートガイドをご参照ください。
411+
> [!Note]
412+
> バージョン 19.0.0 では、React 製品に多くの重大な変更が導入され、API の改善と整理が行われました。詳細は完全なアップデートガイドをご参照ください。
412413

413414
[アップデート ガイド](update-guide.md)
414415

src/ext/MarkdownTransformer.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,17 @@ function omitPlatformSpecificSections(options: any) {
12631263
options.toDelete.add(parent.children[index]);
12641264
}
12651265
break;
1266+
} else if (platformsEqual(currPlats, segment.platforms) && segment.platforms.indexOf(options.platform) != -1) {
1267+
// platform matches: keep content but remove the comment markers
1268+
parent.children[checkIndex].value = parent.children[checkIndex].value.substring(0, startSeg.startIndex);
1269+
if (parent.children[checkIndex].value.length == 0) {
1270+
options.toDelete.add(parent.children[checkIndex]);
1271+
}
1272+
parent.children[index].value = parent.children[index].value.substring(segment.endIndex);
1273+
if (parent.children[index].value.length == 0) {
1274+
options.toDelete.add(parent.children[index]);
1275+
}
1276+
break;
12661277
}
12671278
}
12681279
}
@@ -1809,7 +1820,7 @@ export class MarkdownTransformer {
18091820
.use(finishRemoveBlocks, options)
18101821
.use(transformNotes, options)
18111822
.use(finishRemoveNotes, options)
1812-
.use(stringify)
1823+
.use(stringify, { rule: '-', ruleRepetition: 3, ruleSpaces: false, emphasis: '_', fences: true })
18131824
.process(fileContent, function(err: any, vfile: any) {
18141825
if (err) {
18151826
callback(err, null);
@@ -1821,6 +1832,7 @@ export class MarkdownTransformer {
18211832
fileContent = fileContent.split("* ").join("- ").split("* ").join("- "); // unordered lists: "* " -> "- "
18221833
fileContent = fileContent.split(" - ").join(" - ").split(" - ").join(" - "); // no extra indent
18231834
fileContent = fileContent.split(". ").join(". "); // no extra space after item of ordered list
1835+
fileContent = fileContent.split("\\[!").join("[!"); // note blocks: remark-stringify escapes "[" in "[!NOTE]" as "\[!NOTE]"
18241836

18251837
output.push({ content: fileContent, componentOutput: componentOutput });
18261838

0 commit comments

Comments
 (0)