-
Notifications
You must be signed in to change notification settings - Fork 34
How exactly does one use the getIndent option? #44
Comments
Same here |
Maybe it's convoluted to have it as a function... but you need to pass a function of the current value Here is what you could do: getIndent: value => ' ' Do you have tips for improvement on the documentation about that option ? |
@Soreine thanks very much for your reply. Unfortunately I tried that too and it has no effect for me. No errors, but still 4 spaces for indentation. This is my options object: {
containerType: 'codeBlock',
lineType: 'codeLine',
exitBlockType: 'paragraph',
selectAll: true,
getIndent: value => ' ',
}; Any thoughts as to what the problem could be here? |
Alright, then it's probably a bug. I'll see where it comes from. The plugin also has an indent auto-detection feature, maybe it's conflicting here with the option, though it should not. |
@Soreine thanks very much for taking the time to look into this. I tried to track it down back when I filed this issue, but I wasn't able to find the source of this issue. Everything seemed right except the output. |
Is this still a bug, or are we able to change it to use two spaces for indenting now? |
Still a bug last I checked. If you find a way to fix it, I'd be interested. |
Can anyone let me know what the expected input for the function is? I tried passing just a string value of
(two spaces) but that didn't have any effect.
The text was updated successfully, but these errors were encountered: