slash-create/docs-bot

feat(/code *): Indent everything?

sudojunior opened this issue · 1 comments

Given the constrains content indents have on code blocks, it is a considerable choice to sling it forward - but also a hinderance as mentioned in #24 with regard to content limits. This would require all code specific lines to be prefixed with > , which isn't difficult - but is more concerning for the effect it would have on the limits described... and the reasons to justify the change in formatting without impacting user experience.

private generateCodeLine = (line: string, index: number, lastLine: number, includeNumbers: boolean) =>
(includeNumbers ? `/* ${`${index}`.padStart(`${lastLine}`.length, ' ')} */ ` : '') + line;

Intention blocked by #35 for the introduction of result comments as indented content.