Skip to content

Commit f875a96

Browse files
committed
feat: add text and emphasis transformers - accordproject#397
Documentation update Signed-off-by: k-kumar-01 <[email protected]>
1 parent e43b15a commit f875a96

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/markdown-docx/src/CiceroMarkToOOXMLRules.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ const { sanitizeHtmlChars } = require('./CiceroMarkToOOXMLHelpers');
1919
/**
2020
* Inserts text.
2121
*
22-
* @param {string} value Text to be rendered
23-
* @returns {string} OOXML for the text
22+
* @param {string} value Enclosing value of the OOXML tag
23+
* @returns {string} OOXML tag for the text
2424
*/
2525
const TEXT_RULE = (value) => {
2626
return `<w:r><w:t xml:space="preserve">${sanitizeHtmlChars(value)}</w:t></w:r>`;
2727
};
2828

2929
/**
30-
* Inserts emphsaised text.
30+
* Inserts emphasised text.
3131
*
32-
* @param {string} value Text to be rendered
33-
* @returns {string} OOXML for the emphasised text
32+
* @param {string} value Enclosing value of the OOXML tag
33+
* @returns {string} OOXML tag for the emphasised text
3434
*/
3535
const EMPHASIS_RULE = (value) => {
3636
return `<w:r><w:rPr><w:i w:val="true" /></w:rPr><w:t>${sanitizeHtmlChars(value)}</w:t></w:r>`;

0 commit comments

Comments
 (0)