Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add referenced node to exported discourse context #246

Merged
merged 3 commits into from
Apr 8, 2024

Conversation

mdroidian
Copy link
Collaborator

From a client request to add referenced nodes to exports.

EG: Format = [[EVD]] - {content} - {Source}
then add "Source: [[The source page title]]" to the appended Discourse Context on export

image

Another workaround for format over specification, re: #189 😞

// Remove leading and trailing slashes and start/end modifiers
const patternStr = titleCondition.target.slice(1, -1).replace(/^\^|\$$/g, "");

// Since we aummar there's always a (.*?), we replace it with a specific pattern to capture text within [[ ]]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aummar

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't always aummar, but when I do, I prefer to leave it in a comment. 😅

@mdroidian mdroidian merged commit 2d7eb25 into main Apr 8, 2024
1 check passed
@mdroidian mdroidian deleted the add-referenced-node-to-exported-discourse-context branch April 8, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants