Skip to content

Commit

Permalink
feat: add text and emphasis transformers - accordproject#397
Browse files Browse the repository at this point in the history
Remove attribute from <w:i> ooxml tag

Signed-off-by: k-kumar-01 <[email protected]>
  • Loading branch information
K-Kumar-01 committed Jun 11, 2021
1 parent d5f5b36 commit 18fb1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/markdown-docx/src/CiceroMarkToOOXMLRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const TEXT_RULE = (value) => {
* @returns {string} OOXML tag for the emphasised text
*/
const EMPHASIS_RULE = (value) => {
return `<w:r><w:rPr><w:i w:val="true" /></w:rPr><w:t>${sanitizeHtmlChars(value)}</w:t></w:r>`;
return `<w:r><w:rPr><w:i /></w:rPr><w:t>${sanitizeHtmlChars(value)}</w:t></w:r>`;
};

module.exports = { TEXT_RULE, EMPHASIS_RULE };

0 comments on commit 18fb1fd

Please sign in to comment.