diff options
author | bob <bcz@cs.brown.edu> | 2019-12-09 16:39:32 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-12-09 16:39:32 -0500 |
commit | 27df91d19d7720bbd143f3f447807bfae583d5df (patch) | |
tree | 6186045bd7c0823bc3efb0bb7038ea0cf54a7d0a /src/client/util/ParagraphNodeSpec.ts | |
parent | c9c91b0e74934e36514916786da8822b1f3c05f3 (diff) |
added preliminary support for paragraph indenting and hanging indents.
Diffstat (limited to 'src/client/util/ParagraphNodeSpec.ts')
-rw-r--r-- | src/client/util/ParagraphNodeSpec.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/ParagraphNodeSpec.ts b/src/client/util/ParagraphNodeSpec.ts index 3a993e1ff..593aec498 100644 --- a/src/client/util/ParagraphNodeSpec.ts +++ b/src/client/util/ParagraphNodeSpec.ts @@ -115,7 +115,7 @@ function toDOM(node: Node): DOMOutputSpec { attrs.id = id; } - return ['p', attrs, 0]; + return ['p', { ...attrs, ...{ style: `text-indent: ${indent}; padding-left: ${indent < 0 ? -indent : undefined};` } }, 0]; } export const toParagraphDOM = toDOM; |