8
0
Pārlūkot izejas kodu

Remove fenced code syntax from API docs.

Mateusz Samsel 6 gadi atpakaļ
vecāks
revīzija
419b38915e

+ 8 - 12
packages/ckeditor5-font/src/fontbackgroundcolor.js

@@ -159,33 +159,29 @@ export default class FontBackgroundColor extends Plugin {
  * By default it equals to {@link module:font/fontbackgroundcolor~FontBackgroundColorConfig#columns} value.
  *
  * Examples:
- * ```js
- * 	// Neither documentColors nor columns are defined in config.
+ *
+ * 	// 1) Neither documentColors nor columns are defined in config.
  * 	// documentColors will equal 5,
  * 	// because value will be inherited from `columns`,
  * 	// which has predefined value 5.
  * 	const fontBackgroundColorConfig = {}
- * ```
- * ```js
- * 	// documentColors will equal 8, because value will be inherited from `columns`.
+ *
+ * 	// 2) documentColors will equal 8, because value will be inherited from `columns`.
  * 	const fontBackgroundColorConfig = {
  * 		columns: 8
  * 	}
- * ```
- * ```js
- * 	// documentColors will equal 24, because has defined own value.
+ *
+ * 	// 3) documentColors will equal 24, because has defined own value.
  * 	const fontBackgroundColorConfig = {
  * 		columns: 8,
  * 		documentColors: 24
  * 	}
- * ```
- * ```js
- * 	// documentColors feature will be disabled.
+ *
+ * 	// 4) documentColors feature will be disabled.
  * 	const fontBackgroundColorConfig = {
  * 		columns: 8,
  * 		documentColors: 0
  * 	}
- * ```
  *
  * @member {Number} module:font/fontbackgroundcolor~FontBackgroundColorConfig#documentColors
  */

+ 8 - 12
packages/ckeditor5-font/src/fontcolor.js

@@ -158,33 +158,29 @@ export default class FontColor extends Plugin {
  * By default it equals to {@link module:font/fontcolor~FontColorConfig#columns} value.
  *
  * Examples:
- * ```js
- * 	// Neither documentColors nor columns are defined in config.
+ *
+ * 	// 1) Neither documentColors nor columns are defined in config.
  * 	// documentColors will equal 5,
  * 	// because value will be inherited from `columns`,
  * 	// which has predefined value 5.
  * 	const fontColorConfig = {}
- * ```
- * ```js
- * 	// documentColors will equal 8, because value will be inherited from `columns`.
+ *
+ * 	// 2) documentColors will equal 8, because value will be inherited from `columns`.
  * 	const fontColorConfig = {
  * 		columns: 8
  * 	}
- * ```
- * ```js
- * 	// documentColors will equal 24, because has defined own value.
+ *
+ * 	// 3) documentColors will equal 24, because has defined own value.
  * 	const fontColorConfig = {
  * 		columns: 8,
  * 		documentColors: 24
  * 	}
- * ```
- * ```js
- * 	// documentColors feature will be disabled.
+ *
+ * 	// 4) documentColors feature will be disabled.
  * 	const fontColorConfig = {
  * 		columns: 8,
  * 		documentColors: 0
  * 	}
- * ```
  *
  * @member {Number} module:font/fontcolor~FontColorConfig#documentColors
  */