SimonBiggs / scriptedforms

Quickly create live-update GUIs for Python packages using Markdown and simple HTML elements.
Apache License 2.0
510 stars 34 forks source link

Make only fenced python code actually run #33

Closed SimonBiggs closed 6 years ago

SimonBiggs commented 6 years ago

Instead of overloading <code> create a <app-code> and if a code tag appears within a section have it be replaced with a <app-code> component.

SimonBiggs commented 6 years ago

Don't overload the <code> tag, instead search for code tags that have been created within python fences and swap those out for the relevant Angular component.

SimonBiggs commented 6 years ago

Achieved this by only selecting code.language-python to replace. All python fenced code gets replaced with the Angular component.

SimonBiggs commented 6 years ago

Complete.