shortcode/TODO.md
Roberto Alsina c0f4da86fe return errors from parse()
* Create a sc_result struct that can contain errors as well as the parse results.
* Use sccount to report the found shortcodes instead of checking values
* Various Makefile and test-running fixes

Reviewed-on: #1
Co-authored-by: Roberto Alsina <roberto.alsina@gmail.com>
Co-committed-by: Roberto Alsina <roberto.alsina@gmail.com>
2023-07-13 22:05:11 -03:00

553 B

TODO and TODO'NT

Things That May Get Done

  • Inform tag type (% or <) in result
  • Handle other kinds of quotes
  • Handle escaping quote characters
  • Handle escaping the shortcode itself like \{{% foo %}} (check with hugo docs)
  • Report errors on mismatched {{% foo >}}
  • Add self-closing shortcodes {{< foo />}} (also, how TF do they work?)
  • Add inline shortcodes {{< time.inline >}}{{ now }}{{< /time.inline >}}
  • Start integrating with Crystal
  • Produce decent error structures
  • Detect mismatched start/end like {{% foo >}}