Skip to content

Releases: sumitIsLearning/Rawmark

v0.3.1

Choose a tag to compare

@sumitIsLearning sumitIsLearning released this 07 Aug 17:00

Rawmark as a markup layer for SureCart, plus Post Template for any post type.

Post Template now works for custom post types. It was hardcoded to the
built-in post. A new site-wide whitelist (Rawmark → Settings) picks which
types render through the designated Snippet — defaulting to post, plus
sc_product automatically when SureCart is active. One template, every
product, no per-product page and no hardcoded IDs.

Server-rendered live preview. The preview pane used to be built entirely
client-side, so shortcodes and blocks showed as literal text while editing. It
now renders through the same pipeline the live page uses. A Snippet also gets a
"Preview as" picker, since it has no post of its own to render against.

Render blocks checkbox. enable_blocks existed and was honored by the
render path, but no REST route accepted it — it could only be set from PHP.
There's now a checkbox in the editor topbar (Pages and Snippets both).

Correction to the SureCart guidance in v0.3.0. The docs recommended building
a product page from standalone id-less shortcodes. That advice was wrong and
failed quietly: SureCart's product child blocks declare surecart/product-page
as an ancestor, and that parent is what supplies product context, interactivity
state, and the script module. Only [sc_product_title] and
[sc_product_description] work standalone — price, media, quantity and
cart_button render empty with dead controls. The working pattern is to wrap
your own markup in a real surecart/product-page block, which passes arbitrary
HTML straight through. Full recipe in the bundled SKILL.md.

Known limitation: the preview iframe is sandboxed without allow-same-origin by
design, so block JavaScript can't run in it. Judge layout in the preview; judge
interactions (add to cart, variant pills) on the live URL.

238 PHP tests and 4 JS tests green.

v0.3.0

Choose a tag to compare

@sumitIsLearning sumitIsLearning released this 07 Aug 04:28

Opt-in Gutenberg block rendering, for SureCart Cart/Checkout.

SureCart's Cart and Checkout blocks have no shortcode fallback - a new
enable_blocks setting (off by default, no editor UI yet) makes Rawmark
also run do_blocks() on a page's composed HTML before do_shortcode(),
so real block-comment markup (e.g. surecart/checkout-form) renders and
functions instead of sitting inert.

Implemented and unit-tested (204/204 PHP tests green), but not yet
verified live in a real browser against a real SureCart checkout/cart
flow - no browser-automation tool is available in the dev environment
this was built in. If you install this and click through a real
Cart/Checkout with enable_blocks on, feedback on whether it actually
works is welcome.

v0.2.0

Choose a tag to compare

@sumitIsLearning sumitIsLearning released this 06 Aug 16:58

Changed since v0.1.0

  • WooCommerce Shop redirect setting — new Rawmark > Settings screen (shown only when WooCommerce is active) with a Page picker; 301-redirects the default WooCommerce Shop archive to a Rawmark-built replacement Page, without a separate mu-plugin.
  • Fix: plugin deletion fatal erroruninstall.php was missing a required dependency (TemplateOption) introduced by the Header/Footer Template refactor in v0.1.0, causing every deletion attempt from wp-admin to fatal mid-script. Fixed.

199/199 PHP tests green.

v0.1.0

Choose a tag to compare

@sumitIsLearning sumitIsLearning released this 04 Aug 15:06

Initial release. Standalone Code Pages, Snippets, Header/Footer Template, Post Template, Post Loop marker.