IsGhostEnabled checks if ghost is enabled by checking for directive presence.
(content string)
| 28 | |
| 29 | // IsGhostEnabled checks if ghost is enabled by checking for directive presence. |
| 30 | func IsGhostEnabled(content string) bool { |
| 31 | return ghostDirectiveRegex.MatchString(content) |
| 32 | } |
| 33 | |
| 34 | // RemoveGhostDirective removes the ghost directive from sheet content. |
| 35 | func RemoveGhostDirective(content string) string { |
no outgoing calls