escape tag for url special character#8
escape tag for url special character#8kevchentw wants to merge 15 commits intodragonman225:masterfrom
Conversation
* @rollup/plugin-typescript v4.0.0 is broken, so fallback to v2.1.0
Since the project is now written in TypeScript, the sources have to be compiled before using the CLI. Manually running the build script isn't fun, so I add this NPM script that executes `rollup -cw` to automatically rebuild the bundle whenever sources are modified.
NAST.Collection is a plain JS object, but it is not easy to work with, NTable solve the problem by creating a class to represent the collection and provide lots of pointers that links related data for easier access.
Cache module owns cache/ in a Notablog starter. It handles cache r/w and shouldUpdate() query.
Extract duplicate parts of NXxxProperty, NXxxCell to NProperty and NCell.
Refer to NDateTimeProperty and NDateTimeCell. By the way there is a new function arrayAccessMayFail() to help access data in a multi-layered array.
Also, I do some cleanup in src/util.ts
Fix some confusing sentences.
|
Hi, this regex |
|
The tag will display as "CI/CD" since I only escape The reason for replacing with "-" is for the url readability For the regex, we can preserve necessary characters such as "%", "/", "?", "&", "#". But I need to check out which character will effect the url links. |
This sounds great! At first, I was worried that changing the displayed text might confuse the user.
Agreed. Readability is a good reason to adopt character replacing instead of encodeURIComponent. |
Issue
The generate process failed when tag cantains special character (e.g. "/")
Reproduce
notablog generate .Solution
replace special character with "-" by using squirrelly filter
reference: