We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c33bc59 commit 1ecbd4eCopy full SHA for 1ecbd4e
package/src/components/Message/MessageSimple/utils/renderText.tsx
@@ -251,6 +251,13 @@ export const renderText = <
251
top: 'top',
252
};
253
254
+ /**
255
+ * For lists and sublists, the default behavior of the markdown library we use is
256
+ * to always renumber any list, so all ordered lists start from 1.
257
+ *
258
+ * This custom rule overrides this behavior both for top level lists and sublists,
259
+ * in order to start the numbering from the number of the first list item provided.
260
+ * */
261
const customListAtLevel =
262
(level: keyof typeof listLevels): ReactNodeOutput =>
263
(node, output, { ...state }) => {
0 commit comments