diff --git a/.changeset/dry-icons-repeat.md b/.changeset/dry-icons-repeat.md new file mode 100644 index 0000000..f12e657 --- /dev/null +++ b/.changeset/dry-icons-repeat.md @@ -0,0 +1,5 @@ +--- +"prism-react-renderer": patch +--- + +Fix html language preset by using markup instead. diff --git a/packages/demo/src/sample-code.ts b/packages/demo/src/sample-code.ts index 8328eea..8259546 100644 --- a/packages/demo/src/sample-code.ts +++ b/packages/demo/src/sample-code.ts @@ -56,16 +56,16 @@ const GroceryItem = new Proxy({}, { @property (nonatomic, assign) float price; @property (nonatomic, assign) NSInteger quantity; -- (instancetype) initWithName: (NSString *)name - price: (float)price +- (instancetype) initWithName: (NSString *)name + price: (float)price quantity: (NSInteger)quantity; @end @implementation GroceryItem -- (instancetype) initWithName: (NSString *)name - price: (float)price +- (instancetype) initWithName: (NSString *)name + price: (float)price quantity: (NSInteger)quantity { self = [super init]; if (self) { @@ -88,6 +88,10 @@ const GroceryItem = new Proxy({}, {