Napisać wtyczkę dodającą skrót (shortcode) o następującej funkcjonalności
Skrót powinien pozwalać wydzielić fragment tekstu jako tekst wyróżniony, np. jako tekst zawierający dodatkowe informacje, porady albo ostrzeżenie. Proponuję poniższą składnię
tekst tekst tekst tekst tekst tekst
tekst tekst tekst tekst tekst tekst
[marksection type="info"]
Dodatkowa informacja
[/marksection]
tekst tekst tekst tekst tekst tekst
tekst tekst tekst tekst tekst tekst
[marksection type="alert"]
Ważna informacja!
[/marksection]
tekst tekst tekst tekst tekst tekst
tekst tekst tekst tekst tekst tekst
[marksection type="danger"]
Nigdy nierób w ten sposób!!!
[/marksection]
tekst tekst tekst tekst tekst tekst
tekst tekst tekst tekst tekst tekst