Skip to content

Commit 4171564

Browse files
author
Shailesh Mishra
authored
Merge pull request #13 from contentstack/next
Next : href linking issue fixed
2 parents 38b62ce + a5be7d3 commit 4171564

File tree

5 files changed

+4
-26
lines changed

5 files changed

+4
-26
lines changed

.github/workflows/sast-scan.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/secrets-scan.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

ContentstackUtils.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'ContentstackUtils'
3-
s.version = '1.3.0'
3+
s.version = '1.3.1'
44
s.summary = 'Contentstack is a headless CMS with an API-first approach that puts content at the centre.'
55

66
s.description = <<-DESC

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To use this SDK on iOS platform, you will have to install the SDK according to t
1818
Add the following to your Podfile:
1919

2020
use_frameworks!
21-
pod 'ContentstackUtils', '~> 1.2.1'
21+
pod 'ContentstackUtils', '~> 1.3.1'
2222

2323
#### Swift Package Manager
2424
1. Installing libxml2 to your computer:
@@ -41,7 +41,7 @@ Add the following to your Podfile:
4141
let package = Package(
4242
name: "YourProject",
4343
dependencies: [
44-
.package(url: "https://github.com/tid-kijyun/ContentstackUtils.git", from: "1.2.1"),
44+
.package(url: "https://github.com/tid-kijyun/ContentstackUtils.git", from: "1.3.1"),
4545
],
4646
targets: [
4747
.target(

Sources/ContentstackUtils/Option.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ open class Option: Renderable {
6969
case NodeType.paragraph.rawValue:
7070
return "<p>\(next(node.children))</p>"
7171
case NodeType.link.rawValue:
72-
return "<a href=\"\(node.attrs["href"] ?? "")\">\(next(node.children))</a>"
72+
return "<a href=\"\(node.attrs["href"] ?? node.attrs["url"] ?? "")\">\(next(node.children))</a>"
7373
case NodeType.image.rawValue:
7474
return "<img src=\"\(node.attrs["src"] ?? node.attrs["asset-link"] ?? "")\" />\(next(node.children))"
7575
case NodeType.embed.rawValue:

0 commit comments

Comments
 (0)