obsidian-text-expand icon indicating copy to clipboard operation
obsidian-text-expand copied to clipboard

Feature Request: Strip Comments For $lines:xxx Macro

Open alexgeirby opened this issue 4 years ago • 0 comments

Hi! First of all, thank you for $count macro, it works great!

I have another suggestion for implementation. Right now, when I use $lines:XXX macro, it returns XXX first lines from the file except YAML frontmatter block and empty lines at the beginning of the file. I suggest deleting the multi-line comment as well if it is located at the beginning of the file, i.e. if first line of the file (after stripping yaml and empty lines) starts with %%, strip all lines until next %% is found.

alexgeirby avatar Jul 25 '21 07:07 alexgeirby